mobile_nebula/lib/models/UnsafeRoute.dart

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
341 B
Dart
Raw Normal View History

2020-07-27 20:43:58 +00:00
class UnsafeRoute {
String? route;
String? via;
2020-07-27 20:43:58 +00:00
UnsafeRoute({this.route, this.via});
factory UnsafeRoute.fromJson(Map<String, dynamic> json) {
return UnsafeRoute(
route: json['route'],
via: json['via'],
);
2020-07-27 20:43:58 +00:00
}
Map<String, dynamic> toJson() {
return {
'route': route,
'via': via,
};
}
}