Fehlerkorrekturen
This commit is contained in:
1 parent
faef9ac5d9
commit
125e6eb03e
16 files changed
+335
-48
No files matched your search
@@ -0,0 +1,50 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'pic_message.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class PicMessage {
|
||||
late PicData pic;
|
||||
|
||||
late PicMessagePos pos;
|
||||
|
||||
PicMessage();
|
||||
|
||||
factory PicMessage.fromJson(Map<String, dynamic> json) => _$PicMessageFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$PicMessageToJson(this);
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class PicData
|
||||
{
|
||||
@JsonKey(name: "tr_id")
|
||||
late int trId;
|
||||
|
||||
late int num;
|
||||
|
||||
late int time;
|
||||
|
||||
late String data;
|
||||
|
||||
PicData();
|
||||
|
||||
factory PicData.fromJson(Map<String, dynamic> json) => _$PicDataFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$PicDataToJson(this);
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class PicMessagePos {
|
||||
late double lat;
|
||||
|
||||
late double long;
|
||||
|
||||
late int acc = 0;
|
||||
|
||||
PicMessagePos();
|
||||
|
||||
factory PicMessagePos.fromJson(Map<String, dynamic> json) => _$PicMessagePosFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$PicMessagePosToJson(this);
|
||||
}
|
||||
Reference in new issue
Block a user