BMFPoiInfo.fromMap constructor

BMFPoiInfo.fromMap(
  1. Map map
)

map => BMFPoiInfo

Implementation

BMFPoiInfo.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFPoiInfo,The parameter map cannot be null !') {
  name = map['name'];
  pt = map['pt'] == null ? null : BMFCoordinate.fromMap(map['pt']);
  address = map['address'];
  phone = map['phone'];
  uid = map['uid'];
  province = map['province'];
  city = map['city'];
  area = map['area'];
  streetID = map['streetID'];
  tag = map['tag'];
  hasDetailInfo = map['hasDetailInfo'] as bool;
  detailInfo = map['detailInfo'] == null
      ? null
      : BMFPOIDetailInfo.fromMap(map['detailInfo']);
  direction = map['direction'];
  distance = map['distance'];
  zipCode = map['zipCode'];
  parentPOI =
      map['parentPOI'] == null ? null : BMFPoiInfo.fromMap(map['parentPOI']);
}