toMap method
//////////// //////////// Converts Report to a map for Firestore
Implementation
// II.D - Conversion Methods
///////////////
/// Converts Report to a map for Firestore
Map<String, dynamic> toMap() {
final map = {
'type': type,
'location': location,
'createdBy': createdBy,
'createdAt': createdAt,
'expiresAt': expiresAt,
'direction': direction,
'lane': lane,
'suggestedAlternative': suggestedAlternative,
'details': details,
};
if (geohash != null) {
map['geohash'] = geohash!;
}
return map;
}