toMap method

  1. @override
Map<String, Object?> toMap()
override

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
  };
}