Erweiterungen
This commit is contained in:
1 parent
20a1309946
commit
25a2455ce1
18 files changed
+2272
-1261
No files matched your search
+19
-19
@@ -6,26 +6,9 @@ part 'status.g.dart';
|
||||
@collection
|
||||
@JsonSerializable()
|
||||
class Status {
|
||||
final Id id = 0;
|
||||
late Id? id;
|
||||
|
||||
@JsonKey(name: 'cust_id')
|
||||
late int custId;
|
||||
@JsonKey(name: 'hq_id')
|
||||
late int hqId;
|
||||
@JsonKey(name: 'usr_id')
|
||||
late int usrId;
|
||||
@JsonKey(name: 'cr_id')
|
||||
late int crId;
|
||||
@JsonKey(name: 'sid')
|
||||
late String sid;
|
||||
@JsonKey(name: 'vht_id')
|
||||
late int vhtId;
|
||||
@JsonKey(name: 'loc_zip')
|
||||
late String locZip;
|
||||
@JsonKey(name: 'server_version')
|
||||
late String serverVersion;
|
||||
@JsonKey(name: 'server_instance')
|
||||
late String serverInstance;
|
||||
late StatusPos pos;
|
||||
|
||||
Status();
|
||||
|
||||
@@ -33,3 +16,20 @@ class Status {
|
||||
|
||||
Map<String, dynamic> toJson() => _$StatusToJson(this);
|
||||
}
|
||||
|
||||
@embedded
|
||||
@JsonSerializable()
|
||||
class StatusPos {
|
||||
late String zip;
|
||||
|
||||
late String area;
|
||||
|
||||
@JsonKey(name:'zip_real')
|
||||
late String zipReal;
|
||||
|
||||
StatusPos();
|
||||
|
||||
factory StatusPos.fromJson(Map<String, dynamic> json) => _$StatusPosFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$StatusPosToJson(this);
|
||||
}
|
||||
Reference in new issue
Block a user