Erweiterungen
This commit is contained in:
1 parent
d622c975c0
commit
f6b81817b0
13 files changed
+176
-143
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:stadtbote/protocoll_messages/fin_task_message.dart';
|
||||
import 'package:stadtbote/tools/util.dart';
|
||||
|
||||
part 'track_station_message.g.dart';
|
||||
@@ -11,7 +12,7 @@ class TrackStationMessage {
|
||||
|
||||
late String time;
|
||||
|
||||
late Pos? pos;
|
||||
late FinTaskPos? pos;
|
||||
|
||||
TrackStationMessage();
|
||||
|
||||
@@ -19,16 +20,3 @@ class TrackStationMessage {
|
||||
|
||||
Map<String, dynamic> toJson() => _$TrackStationMessageToJson(this);
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class Pos {
|
||||
late double lat;
|
||||
|
||||
late double long;
|
||||
|
||||
Pos();
|
||||
|
||||
factory Pos.fromJson(Map<String, dynamic> json) => _$PosFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$PosToJson(this);
|
||||
}
|
||||
Reference in new issue
Block a user