BMFRidingRouteResult.fromMap constructor

BMFRidingRouteResult.fromMap(
  1. Map map
)

map => BMFRidingRouteResult

Implementation

BMFRidingRouteResult.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFRidingRouteResult,The parameter map cannot be null !') {
  suggestAddrResult = map['suggestAddrResult'] == null
      ? null
      : BMFSuggestAddrInfo.fromMap(map['suggestAddrResult']);
  if (map['routes'] != null) {
    routes = new List<BMFRidingRouteLine>();
    map['routes'].forEach((v) {
      routes.add(BMFRidingRouteLine.fromMap(v as Map));
    });
  }
}