import 'package:isar/isar.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:stadtbote/model/job_tour.dart'; import 'package:stadtbote/model/tour_position.dart'; import 'package:stadtbote/model/tour_task.dart'; part 'job.g.dart'; @collection @JsonSerializable() class Job { late Id id; @JsonKey(name: 'ver') late String ver; @JsonKey(name: 'state') late int state; @JsonKey(name: 'cr_filter') late String? crFilter; @JsonKey(name: 'ordertime') late String ordertime; @JsonKey(name: 'offs_warn') late int offsWarn; @JsonKey(name: 'global') late bool global; @JsonKey(name: 'vht_id') late int vhtId; @JsonKey(name: 'rem') late String rem; @JsonKey(name: 'delayOrderTime') late int delayOrderTime; @JsonKey(name: 'tours') late List tours; @Ignore() late DateTime? firstDisplayTime = null; @Ignore() late int enableDelay; Job(); factory Job.fromJson(Map json) => _$JobFromJson(json); Map toJson() => _$JobToJson(this); }