RouteWay.fromJson constructor Null safety

RouteWay.fromJson(
  1. Map json
)

Implementation

RouteWay.fromJson(Map json) {
  routeId = json['id'];
  way = json['way'] != null ? Way.values[json['way']] : null;
}