/* Options: Date: 2024-10-06 10:27:59 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SectionsTimetableRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SectionTimetableNoteResponse implements IConvertible { String? heading; String? body; SectionTimetableNoteResponse({this.heading,this.body}); SectionTimetableNoteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { heading = json['heading']; body = json['body']; return this; } Map toJson() => { 'heading': heading, 'body': body }; getTypeName() => "SectionTimetableNoteResponse"; TypeContext? context = _ctx; } class SectionTimetableInstructorResponse implements IConvertible { String? instructorName; String? instructorSlug; SectionTimetableInstructorResponse({this.instructorName,this.instructorSlug}); SectionTimetableInstructorResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { instructorName = json['instructorName']; instructorSlug = json['instructorSlug']; return this; } Map toJson() => { 'instructorName': instructorName, 'instructorSlug': instructorSlug }; getTypeName() => "SectionTimetableInstructorResponse"; TypeContext? context = _ctx; } class SectionTimetableResponse implements IConvertible { String? time; int? sortTime; String? course; String? courseSlug; String? desc; List? instructors; String? registrationInfo; String? room; double? creditMinimum; double? creditMaximum; double? auditMinimum; double? auditMaximum; SectionTimetableResponse({this.time,this.sortTime,this.course,this.courseSlug,this.desc,this.instructors,this.registrationInfo,this.room,this.creditMinimum,this.creditMaximum,this.auditMinimum,this.auditMaximum}); SectionTimetableResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { time = json['time']; sortTime = json['sortTime']; course = json['course']; courseSlug = json['courseSlug']; desc = json['desc']; instructors = JsonConverters.fromJson(json['instructors'],'List',context!); registrationInfo = json['registrationInfo']; room = json['room']; creditMinimum = JsonConverters.toDouble(json['creditMinimum']); creditMaximum = JsonConverters.toDouble(json['creditMaximum']); auditMinimum = JsonConverters.toDouble(json['auditMinimum']); auditMaximum = JsonConverters.toDouble(json['auditMaximum']); return this; } Map toJson() => { 'time': time, 'sortTime': sortTime, 'course': course, 'courseSlug': courseSlug, 'desc': desc, 'instructors': JsonConverters.toJson(instructors,'List',context!), 'registrationInfo': registrationInfo, 'room': room, 'creditMinimum': creditMinimum, 'creditMaximum': creditMaximum, 'auditMinimum': auditMinimum, 'auditMaximum': auditMaximum }; getTypeName() => "SectionTimetableResponse"; TypeContext? context = _ctx; } class SectionsTimetableResponse implements IConvertible { ResponseStatus? responseStatus; String? term; List? notes; List? monday; List? tuesday; List? wednesday; List? thursday; List? friday; List? saturday; List? sunday; SectionsTimetableResponse({this.responseStatus,this.term,this.notes,this.monday,this.tuesday,this.wednesday,this.thursday,this.friday,this.saturday,this.sunday}); SectionsTimetableResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); term = json['term']; notes = JsonConverters.fromJson(json['notes'],'List',context!); monday = JsonConverters.fromJson(json['monday'],'List',context!); tuesday = JsonConverters.fromJson(json['tuesday'],'List',context!); wednesday = JsonConverters.fromJson(json['wednesday'],'List',context!); thursday = JsonConverters.fromJson(json['thursday'],'List',context!); friday = JsonConverters.fromJson(json['friday'],'List',context!); saturday = JsonConverters.fromJson(json['saturday'],'List',context!); sunday = JsonConverters.fromJson(json['sunday'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'term': term, 'notes': JsonConverters.toJson(notes,'List',context!), 'monday': JsonConverters.toJson(monday,'List',context!), 'tuesday': JsonConverters.toJson(tuesday,'List',context!), 'wednesday': JsonConverters.toJson(wednesday,'List',context!), 'thursday': JsonConverters.toJson(thursday,'List',context!), 'friday': JsonConverters.toJson(friday,'List',context!), 'saturday': JsonConverters.toJson(saturday,'List',context!), 'sunday': JsonConverters.toJson(sunday,'List',context!) }; getTypeName() => "SectionsTimetableResponse"; TypeContext? context = _ctx; } // @Route("/Sections/Timetable/{reporting_term}", "POST") class SectionsTimetableRequest implements IReturn, IConvertible, IPost { String? reporting_term; SectionsTimetableRequest({this.reporting_term}); SectionsTimetableRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { reporting_term = json['reporting_term']; return this; } Map toJson() => { 'reporting_term': reporting_term }; createResponse() => SectionsTimetableResponse(); getResponseTypeName() => "SectionsTimetableResponse"; getTypeName() => "SectionsTimetableRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'SectionTimetableNoteResponse': TypeInfo(TypeOf.Class, create:() => SectionTimetableNoteResponse()), 'SectionTimetableInstructorResponse': TypeInfo(TypeOf.Class, create:() => SectionTimetableInstructorResponse()), 'SectionTimetableResponse': TypeInfo(TypeOf.Class, create:() => SectionTimetableResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SectionsTimetableResponse': TypeInfo(TypeOf.Class, create:() => SectionsTimetableResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SectionsTimetableRequest': TypeInfo(TypeOf.Class, create:() => SectionsTimetableRequest()), });