/* Options: Date: 2024-12-29 02:49:42 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: SectionsAvailableToChangeForStudentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SectionAvailableForStudentResponse extends SectionResponse implements IConvertible { String? uuid; String? studentSectionUUID; double? registered_amount; bool? is_full; bool? is_too_late; bool? is_too_early; bool? is_audit; bool? is_selected; bool? is_registered; bool? is_provisional; bool? is_missing_requisites; bool? is_completed; double? maximum_credit_hours; double? maximum_audit_hours; bool? can_retake; bool? is_credit_restricted; bool? is_audit_restricted; bool? is_oncampus_restricted_for_change; bool? is_online_restricted_for_change; bool? can_be_provisional; bool? can_be_dropped; List? ruleMessages; SectionAvailableForStudentResponse({this.uuid,this.studentSectionUUID,this.registered_amount,this.is_full,this.is_too_late,this.is_too_early,this.is_audit,this.is_selected,this.is_registered,this.is_provisional,this.is_missing_requisites,this.is_completed,this.maximum_credit_hours,this.maximum_audit_hours,this.can_retake,this.is_credit_restricted,this.is_audit_restricted,this.is_oncampus_restricted_for_change,this.is_online_restricted_for_change,this.can_be_provisional,this.can_be_dropped,this.ruleMessages}); SectionAvailableForStudentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); uuid = json['uuid']; studentSectionUUID = json['studentSectionUUID']; registered_amount = JsonConverters.toDouble(json['registered_amount']); is_full = json['is_full']; is_too_late = json['is_too_late']; is_too_early = json['is_too_early']; is_audit = json['is_audit']; is_selected = json['is_selected']; is_registered = json['is_registered']; is_provisional = json['is_provisional']; is_missing_requisites = json['is_missing_requisites']; is_completed = json['is_completed']; maximum_credit_hours = JsonConverters.toDouble(json['maximum_credit_hours']); maximum_audit_hours = JsonConverters.toDouble(json['maximum_audit_hours']); can_retake = json['can_retake']; is_credit_restricted = json['is_credit_restricted']; is_audit_restricted = json['is_audit_restricted']; is_oncampus_restricted_for_change = json['is_oncampus_restricted_for_change']; is_online_restricted_for_change = json['is_online_restricted_for_change']; can_be_provisional = json['can_be_provisional']; can_be_dropped = json['can_be_dropped']; ruleMessages = JsonConverters.fromJson(json['ruleMessages'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'uuid': uuid, 'studentSectionUUID': studentSectionUUID, 'registered_amount': registered_amount, 'is_full': is_full, 'is_too_late': is_too_late, 'is_too_early': is_too_early, 'is_audit': is_audit, 'is_selected': is_selected, 'is_registered': is_registered, 'is_provisional': is_provisional, 'is_missing_requisites': is_missing_requisites, 'is_completed': is_completed, 'maximum_credit_hours': maximum_credit_hours, 'maximum_audit_hours': maximum_audit_hours, 'can_retake': can_retake, 'is_credit_restricted': is_credit_restricted, 'is_audit_restricted': is_audit_restricted, 'is_oncampus_restricted_for_change': is_oncampus_restricted_for_change, 'is_online_restricted_for_change': is_online_restricted_for_change, 'can_be_provisional': can_be_provisional, 'can_be_dropped': can_be_dropped, 'ruleMessages': JsonConverters.toJson(ruleMessages,'List',context!) }); getTypeName() => "SectionAvailableForStudentResponse"; TypeContext? context = _ctx; } class SectionsAvailableForStudentResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? uuid; String? reporting_term; bool? notifyOfAcademicProbation; List? sectionsAvailable; List? messages; SectionsAvailableForStudentResponse({this.responseStatus,this.regent_id,this.uuid,this.reporting_term,this.notifyOfAcademicProbation,this.sectionsAvailable,this.messages}); SectionsAvailableForStudentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; uuid = json['uuid']; reporting_term = json['reporting_term']; notifyOfAcademicProbation = json['notifyOfAcademicProbation']; sectionsAvailable = JsonConverters.fromJson(json['sectionsAvailable'],'List',context!); messages = JsonConverters.fromJson(json['messages'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'uuid': uuid, 'reporting_term': reporting_term, 'notifyOfAcademicProbation': notifyOfAcademicProbation, 'sectionsAvailable': JsonConverters.toJson(sectionsAvailable,'List',context!), 'messages': JsonConverters.toJson(messages,'List',context!) }; getTypeName() => "SectionsAvailableForStudentResponse"; TypeContext? context = _ctx; } // @Route("/Sections/AvailableToChange/{uuid}/Term/{reporting_term}", "POST") class SectionsAvailableToChangeForStudentRequest implements IReturn, IConvertible, IPost { String? uuid; String? reporting_term; bool? online_only; SectionsAvailableToChangeForStudentRequest({this.uuid,this.reporting_term,this.online_only}); SectionsAvailableToChangeForStudentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; reporting_term = json['reporting_term']; online_only = json['online_only']; return this; } Map toJson() => { 'uuid': uuid, 'reporting_term': reporting_term, 'online_only': online_only }; createResponse() => SectionsAvailableForStudentResponse(); getResponseTypeName() => "SectionsAvailableForStudentResponse"; getTypeName() => "SectionsAvailableToChangeForStudentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'SectionAvailableForStudentResponse': TypeInfo(TypeOf.Class, create:() => SectionAvailableForStudentResponse()), 'SectionsAvailableForStudentResponse': TypeInfo(TypeOf.Class, create:() => SectionsAvailableForStudentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SectionsAvailableToChangeForStudentRequest': TypeInfo(TypeOf.Class, create:() => SectionsAvailableToChangeForStudentRequest()), });