BMFBusLineResult.fromMap constructor
- Map map
map => BMFBusLineResult
Implementation
BMFBusLineResult.fromMap(Map map)
: assert(map != null,
'Construct a BMFBusLineResult,The parameter map cannot be null !') {
busLineName = map['busLineName'];
busLineDirection = map['busLineDirection'];
uid = map['uid'];
startTime = map['startTime'];
endTime = map['endTime'];
isMonTicket = map['isMonTicket'];
basicPrice = map['basicPrice'];
totalPrice = map['totalPrice'];
if (map['busStations'] != null) {
busStations = new List<BMFBusStation>();
map['busStations'].forEach((v) {
busStations.add(BMFBusStation.fromMap(v as Map));
});
}
if (map['busSteps'] != null) {
busSteps = new List<BMFBusStep>();
map['busSteps'].forEach((v) {
busSteps.add(BMFBusStep.fromMap(v as Map));
});
}
}