BMFRouteLine.fromMap constructor

BMFRouteLine.fromMap(
  1. Map map
)

map => BMFRouteLine

Implementation

BMFRouteLine.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFRouteLine,The parameter map cannot be null !') {
  distance = map['distance'];
  duration =
      map['duration'] == null ? null : BMFTime.fromMap(map['duration']);
  starting =
      map['starting'] == null ? null : BMFRouteNode.fromMap(map['starting']);
  terminal =
      map['terminal'] == null ? null : BMFRouteNode.fromMap(map['terminal']);
  title = map['title'];
}