BMFRecommendStopInfo.fromMap constructor Null safety

BMFRecommendStopInfo.fromMap(
  1. 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'];
}