import 'package:isar/isar.dart'; import 'package:json_annotation/json_annotation.dart'; part 'tour_task.g.dart'; @embedded @JsonSerializable() class TourTask { @JsonKey(name: 's_id') late int sId; late int type; late String topic; late bool? opt; late bool? reenter; late int? min; late int? max; @JsonKey(name: 'max_len') late int? maxLen; late bool? rt; late bool? track; late List? txt; @JsonKey(name: 'task_arrival') late int? taskArrival; @JsonKey(name: 'task_fin_work') late int? taskFinWork; late List? entries; TourTask(); factory TourTask.fromJson(Map json) => _$TourTaskFromJson(json); Map toJson() => _$TourTaskToJson(this); }