Erweiterungen
This commit is contained in:
1 parent
d622c975c0
commit
f6b81817b0
13 files changed
+176
-143
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:stadtbote/protocoll_messages/fin_task_message.dart';
|
||||
|
||||
part 'accept_job_message.g.dart';
|
||||
|
||||
@@ -30,7 +31,7 @@ class Reaction {
|
||||
@JsonSerializable()
|
||||
@JsonSerializable()class Track {
|
||||
late String time;
|
||||
late Pos pos;
|
||||
late FinTaskPos pos;
|
||||
|
||||
Track();
|
||||
|
||||
@@ -38,17 +39,3 @@ class Reaction {
|
||||
|
||||
Map<String, dynamic> toJson() => _$TrackToJson(this);
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class Pos {
|
||||
late double lat;
|
||||
late double long;
|
||||
late double acc;
|
||||
|
||||
Pos();
|
||||
|
||||
factory Pos.fromJson(Map<String, dynamic> json) => _$PosFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$PosToJson(this);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user