1
0
Fork 1
mirror of https://github.com/DefinedNet/mobile_nebula.git synced 2025-02-25 20:45:27 +00:00
mobile_nebula/lib/models/UnsafeRoute.dart
Nate Brown dbe67c2f81
Upgrade to flutter 3 ()
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,
};
}
}