BMFRecommendStopInfo.fromMap constructor Null safety
- Map map
map => BMFRecommendStopInfo
Implementation
BMFRecommendStopInfo.fromMap(Map map)
: assert(
map != null, // ignore: unnecessary_null_comparison
'Construct a BMFRecommendStopInfo,The parameter map cannot be null !') {
name = map['name'];
address = map['address'];
location =
map['location'] == null ? null : BMFCoordinate.fromMap(map['location']);
uid = map['uid'];
distance = map['distance'];
}