mobile_nebula/lib/models/UnsafeRoute.dart

21 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,
};
}
}