part of 'route_point.dart'; List getSteps(Map json) { List extras = []; try { if (json['steps'] == null) return extras; var list = json['steps'] as List; for (var item in list) { extras.add(Step.fromJson(item)); } return extras; } on Exception { return extras; } } RoutePoint _$RoutePointFromJson(Map json) { return RoutePoint( distance: json['distance'] == null ? null : Info.fromJson(json['distance']), duration: json['duration'] == null ? null : Info.fromJson(json['duration']), endLocation: json['end_location'] == null ? null : Location.fromJson(json['end_location']), startLocation: json['start_location'] == null ? null : Location.fromJson(json['start_location']), endAddress: json['end_address'], startAddress: json['start_address'] , steps: getSteps(json), ); }