import 'package:json_annotation/json_annotation.dart'; import 'package:marianum_mobile/api/webuntis/apiResponse.dart'; part 'getTimetableResponse.g.dart'; @JsonSerializable(explicitToJson: true) class GetTimetableResponse extends ApiResponse { Set result; GetTimetableResponse(this.result); factory GetTimetableResponse.fromJson(Map json) => _$GetTimetableResponseFromJson(json); Map toJson() => _$GetTimetableResponseToJson(this); } @JsonSerializable(explicitToJson: true) class GetTimetableResponseObject { int id; int date; int startTime; int endTime; String? lstype; String? code; String? info; String? substText; String? lstext; int? lsnumber; String? statflags; String? activityType; String? sg; String? bkRemark; String? bkText; List kl; List te; List su; List ro; GetTimetableResponseObject({ required this.id, required this.date, required this.startTime, required this.endTime, this.lstype, this.code, this.info, this.substText, this.lstext, this.lsnumber, this.statflags, this.activityType, this.sg, this.bkRemark, required this.kl, required this.te, required this.su, required this.ro }); factory GetTimetableResponseObject.fromJson(Map json) => _$GetTimetableResponseObjectFromJson(json); Map toJson() => _$GetTimetableResponseObjectToJson(this); } @JsonSerializable(explicitToJson: true) class GetTimetableResponseObjectFields { List? te; GetTimetableResponseObjectFields(this.te); factory GetTimetableResponseObjectFields.fromJson(Map json) => _$GetTimetableResponseObjectFieldsFromJson(json); Map toJson() => _$GetTimetableResponseObjectFieldsToJson(this); } @JsonSerializable() class GetTimetableResponseObjectFieldsObject { int? id; String? name; String? longname; String? externalkey; GetTimetableResponseObjectFieldsObject({this.id, this.name, this.longname, this.externalkey}); factory GetTimetableResponseObjectFieldsObject.fromJson(Map json) => _$GetTimetableResponseObjectFieldsObjectFromJson(json); Map toJson() => _$GetTimetableResponseObjectFieldsObjectToJson(this); }