TIMPoiInfo.fromMap constructor

TIMPoiInfo.fromMap(
  1. Map map
)

map => TIMPoiInfo

Implementation

TIMPoiInfo.fromMap(Map map)
    : assert(
map != null, // ignore: unnecessary_null_comparison
'Construct a TIMPoiInfo,The parameter map cannot be null !') {
  name = map['name'];
  pt = map['pt'] == null ? null : TIMCoordinate.fromMap(map['pt']);
  address = map['address'];
  uid = map['uid'];
  province = map['province'];
  city = map['city'];
}