BMFPOIDetailChildrenInfo.fromMap constructor Null safety

BMFPOIDetailChildrenInfo.fromMap(
  1. Map map
)

map => BMFPOIDetailChildrenInfo

Implementation

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