toMap method
model -> map
Implementation
@override
Map<String, Object?> toMap() {
return {
'location': location?.toMap(),
'address': address,
'addressDetail': addressDetail?.toMap(),
'poiList': poiList?.map((p) => p.toMap()).toList(),
'semanticDescription': semanticDescription
};
}