31 lines
680 B
Dart
31 lines
680 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 String 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;
|
|
late FinTaskPos pos;
|
|
|
|
Track();
|
|
|
|
factory Track.fromJson(Map<String, dynamic> json) => _$TrackFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$TrackToJson(this);
|
|
}
|