# Conflicts: # lib/content_views/approach_area_page.dart # lib/content_views/assigned_jobs_page.dart # lib/content_views/main_page.dart # lib/content_views/task_list_page.dart # lib/main.dart # lib/popups/accept_jobs_popup.dart # lib/protocoll_messages/logout_message.dart # lib/protocoll_messages/logout_message.g.dart # lib/tools/constants.dart # lib/tools/mqtt_core.dart # pubspec.lock # pubspec.yaml
31 lines
691 B
Dart
31 lines
691 B
Dart
import 'package:isar/isar.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
import 'package:stadtbote/model/tour_position.dart';
|
|
import 'package:stadtbote/model/tour_task.dart';
|
|
|
|
part 'job_tour.g.dart';
|
|
|
|
@embedded
|
|
@JsonSerializable()
|
|
class JobTour {
|
|
late int id;
|
|
late int sort;
|
|
late int state;
|
|
late String mode;
|
|
late String comp;
|
|
late String person;
|
|
late String? phone;
|
|
late String street;
|
|
late String city;
|
|
late String? com;
|
|
late TourPosition? pos;
|
|
late String rem;
|
|
late List<TourTask>? tasks;
|
|
|
|
JobTour();
|
|
|
|
factory JobTour.fromJson(Map<String, dynamic> json) => _$JobTourFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$JobTourToJson(this);
|
|
}
|