# 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
32 lines
674 B
Dart
32 lines
674 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
import 'package:stadtbote/protocoll_messages/fin_task_message.dart';
|
|
|
|
part 'accept_job_message.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class Reaction {
|
|
late int id;
|
|
late String ver;
|
|
late int item;
|
|
late Track track;
|
|
|
|
Reaction();
|
|
|
|
factory Reaction.fromJson(Map<String, dynamic> json) => _$ReactionFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$ReactionToJson(this);
|
|
}
|
|
|
|
@JsonSerializable()
|
|
@JsonSerializable()class Track {
|
|
late String time;
|
|
|
|
FinTaskPos? pos;
|
|
|
|
Track();
|
|
|
|
factory Track.fromJson(Map<String, dynamic> json) => _$TrackFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$TrackToJson(this);
|
|
}
|