mobile_nebula/lib/models/UnsafeRoute.dart
Nate Brown dbe67c2f81
Upgrade to flutter 3 (#70)
Co-authored-by: John Maguire <contact@johnmaguire.me>
2022-09-21 15:27:35 -05:00

20 lines
341 B
Dart

class UnsafeRoute {
String? route;
String? via;
UnsafeRoute({this.route, this.via});
factory UnsafeRoute.fromJson(Map<String, dynamic> json) {
return UnsafeRoute(
route: json['route'],
via: json['via'],
);
}
Map<String, dynamic> toJson() {
return {
'route': route,
'via': via,
};
}
}