BMFVehicleInfo.fromMap constructor Null safety

BMFVehicleInfo.fromMap(
  1. Map map
)

map => BMFVehicleInfo

Implementation

BMFVehicleInfo.fromMap(Map map)
    : assert(
          map != null, // ignore: unnecessary_null_comparison
          'Construct a BMFVehicleInfo,The parameter map cannot be null !') {
  uid = map['uid'];
  title = map['title'];
  passStationNum = map['passStationNum'];
  totalPrice = map['totalPrice'];
  zonePrice = map['zonePrice'];
}