GeoPoiLocationResp.fromMap constructor

GeoPoiLocationResp.fromMap(
  1. Map map
)

fromMap

Implementation

GeoPoiLocationResp.fromMap(Map<dynamic, dynamic> map) {
  code = map['code'] as String;
  refer = Refer.fromMap(map['refer'] ?? Map());
  List _tmp = map['locations'] ?? [];
  locations = _tmp.map((v) => GeoPoiLocation.fromMap(v)).toList();
}