Location Status eingebaut
Ranking wieder teilaktivert.
This commit is contained in:
1 parent
276b337b62
commit
cfbc0cf765
12 files changed
+566
-862
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'location_status.g.dart';
|
||||
|
||||
@collection
|
||||
@JsonSerializable()
|
||||
class LocationStatus {
|
||||
Id? id = 0;
|
||||
|
||||
late String zip;
|
||||
|
||||
late String area;
|
||||
|
||||
@JsonKey(name:'zip_real')
|
||||
late String zipReal;
|
||||
|
||||
LocationStatus();
|
||||
|
||||
factory LocationStatus.fromJson(Map<String, dynamic> json) => _$LocationStatusFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$LocationStatusToJson(this);
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,36 +0,0 @@
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'status.g.dart';
|
||||
|
||||
@collection
|
||||
@JsonSerializable()
|
||||
class Status {
|
||||
@JsonKey(name: "id", defaultValue: 0)
|
||||
Id? id;
|
||||
|
||||
late StatusPos pos;
|
||||
|
||||
Status();
|
||||
|
||||
factory Status.fromJson(Map<String, dynamic> json) => _$StatusFromJson(json);
|
||||
|
||||
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