/* Options: Date: 2024-12-29 03:29:57 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: InstitutionStudentsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class InstitutionResponse implements IConvertible { ResponseStatus? responseStatus; int? institution_id; String? institution_name; String? institution_previous_names; String? institution_other_names; String? institution_type; String? accreditation_status; String? accreditation_status_notes; List? related_institutions; DateTime? accreditation_status_changed_date; String? gpa_conversion; String? credit_hour_conversion; String? addr1; String? addr2; String? city; String? state; String? country; String? zip; InstitutionResponse({this.responseStatus,this.institution_id,this.institution_name,this.institution_previous_names,this.institution_other_names,this.institution_type,this.accreditation_status,this.accreditation_status_notes,this.related_institutions,this.accreditation_status_changed_date,this.gpa_conversion,this.credit_hour_conversion,this.addr1,this.addr2,this.city,this.state,this.country,this.zip}); InstitutionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); institution_id = json['institution_id']; institution_name = json['institution_name']; institution_previous_names = json['institution_previous_names']; institution_other_names = json['institution_other_names']; institution_type = json['institution_type']; accreditation_status = json['accreditation_status']; accreditation_status_notes = json['accreditation_status_notes']; related_institutions = JsonConverters.fromJson(json['related_institutions'],'List',context!); accreditation_status_changed_date = JsonConverters.fromJson(json['accreditation_status_changed_date'],'DateTime',context!); gpa_conversion = json['gpa_conversion']; credit_hour_conversion = json['credit_hour_conversion']; addr1 = json['addr1']; addr2 = json['addr2']; city = json['city']; state = json['state']; country = json['country']; zip = json['zip']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'institution_id': institution_id, 'institution_name': institution_name, 'institution_previous_names': institution_previous_names, 'institution_other_names': institution_other_names, 'institution_type': institution_type, 'accreditation_status': accreditation_status, 'accreditation_status_notes': accreditation_status_notes, 'related_institutions': JsonConverters.toJson(related_institutions,'List',context!), 'accreditation_status_changed_date': JsonConverters.toJson(accreditation_status_changed_date,'DateTime',context!), 'gpa_conversion': gpa_conversion, 'credit_hour_conversion': credit_hour_conversion, 'addr1': addr1, 'addr2': addr2, 'city': city, 'state': state, 'country': country, 'zip': zip }; getTypeName() => "InstitutionResponse"; TypeContext? context = _ctx; } class StudentTransferCredentialsResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? uuid; List? studentTransferCredentialPackage; StudentTransferCredentialsResponse({this.responseStatus,this.regent_id,this.uuid,this.studentTransferCredentialPackage}); StudentTransferCredentialsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; uuid = json['uuid']; studentTransferCredentialPackage = JsonConverters.fromJson(json['studentTransferCredentialPackage'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'uuid': uuid, 'studentTransferCredentialPackage': JsonConverters.toJson(studentTransferCredentialPackage,'List',context!) }; getTypeName() => "StudentTransferCredentialsResponse"; TypeContext? context = _ctx; } class ExternalDegreesResponse implements IConvertible { ResponseStatus? responseStatus; PersonSimpleResponse? person; double? gpa; List? student_programs; List? degrees; List? valid_degrees; ExternalDegreesResponse({this.responseStatus,this.person,this.gpa,this.student_programs,this.degrees,this.valid_degrees}); ExternalDegreesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); person = JsonConverters.fromJson(json['person'],'PersonSimpleResponse',context!); gpa = JsonConverters.toDouble(json['gpa']); student_programs = JsonConverters.fromJson(json['student_programs'],'List',context!); degrees = JsonConverters.fromJson(json['degrees'],'List',context!); valid_degrees = JsonConverters.fromJson(json['valid_degrees'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'person': JsonConverters.toJson(person,'PersonSimpleResponse',context!), 'gpa': gpa, 'student_programs': JsonConverters.toJson(student_programs,'List',context!), 'degrees': JsonConverters.toJson(degrees,'List',context!), 'valid_degrees': JsonConverters.toJson(valid_degrees,'List',context!) }; getTypeName() => "ExternalDegreesResponse"; TypeContext? context = _ctx; } class InstitutionStudentsResponse extends InstitutionResponse implements IConvertible { List? student_transfer_credentials; List? student_previous_degrees; InstitutionStudentsResponse({this.student_transfer_credentials,this.student_previous_degrees}); InstitutionStudentsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); student_transfer_credentials = JsonConverters.fromJson(json['student_transfer_credentials'],'List',context!); student_previous_degrees = JsonConverters.fromJson(json['student_previous_degrees'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'student_transfer_credentials': JsonConverters.toJson(student_transfer_credentials,'List',context!), 'student_previous_degrees': JsonConverters.toJson(student_previous_degrees,'List',context!) }); getTypeName() => "InstitutionStudentsResponse"; TypeContext? context = _ctx; } // @Route("/Academic/Institution/{institution_id}/Students", "POST") class InstitutionStudentsRequest implements IReturn, IConvertible, IPost { int? institution_id; InstitutionStudentsRequest({this.institution_id}); InstitutionStudentsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { institution_id = json['institution_id']; return this; } Map toJson() => { 'institution_id': institution_id }; createResponse() => InstitutionStudentsResponse(); getResponseTypeName() => "InstitutionStudentsResponse"; getTypeName() => "InstitutionStudentsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'InstitutionResponse': TypeInfo(TypeOf.Class, create:() => InstitutionResponse()), 'StudentTransferCredentialsResponse': TypeInfo(TypeOf.Class, create:() => StudentTransferCredentialsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'StudentTransferCredentialPackageResponse': TypeInfo(TypeOf.Class, create:() => StudentTransferCredentialPackageResponse()), 'ExternalDegreesResponse': TypeInfo(TypeOf.Class, create:() => ExternalDegreesResponse()), 'PersonSimpleResponse': TypeInfo(TypeOf.Class, create:() => PersonSimpleResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'StudentProgramSimpleResponse': TypeInfo(TypeOf.Class, create:() => StudentProgramSimpleResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ExternalDegreeResponse': TypeInfo(TypeOf.Class, create:() => ExternalDegreeResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ExternalDegreesAdminResponse': TypeInfo(TypeOf.Class, create:() => ExternalDegreesAdminResponse()), 'InstitutionStudentsResponse': TypeInfo(TypeOf.Class, create:() => InstitutionStudentsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'InstitutionStudentsRequest': TypeInfo(TypeOf.Class, create:() => InstitutionStudentsRequest()), });