BMFBaseRoutePlanOption.fromMap constructor Null safety

BMFBaseRoutePlanOption.fromMap(
  1. Map map
)

map => BMFBaseRoutePlanOption

Implementation

BMFBaseRoutePlanOption.fromMap(Map map)
    : assert(
          map != null, // ignore: unnecessary_null_comparison
          'Construct a BMFBaseRoutePlanOption,The parameter map cannot be null !') {
  from = map['from'] == null ? null : BMFPlanNode.fromMap(map['from']);
  to = map['to'] == null ? null : BMFPlanNode.fromMap(map['to']);
}