Erweiterungen
This commit is contained in:
1 parent
b7d45efecc
commit
d622c975c0
9 files changed
+345
-2
No files matched your search
@@ -0,0 +1,34 @@
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:stadtbote/tools/util.dart';
|
||||
|
||||
part 'track_station_message.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class TrackStationMessage {
|
||||
@JsonKey(name: 's_id')
|
||||
late int sid;
|
||||
|
||||
late String time;
|
||||
|
||||
late Pos? pos;
|
||||
|
||||
TrackStationMessage();
|
||||
|
||||
factory TrackStationMessage.fromJson(Map<String, dynamic> json) => _$TrackStationMessageFromJson(json);
|
||||
|
||||
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