/* Options: Date: 2024-12-29 03:36:13 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: InstitutionCreateFromOrganizationRequest.* //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; } // @Route("/Academic/Institution/Create/FromOrganization/{organization_id}", "POST") class InstitutionCreateFromOrganizationRequest implements IReturn, IConvertible, IPost { int? organization_id; InstitutionCreateFromOrganizationRequest({this.organization_id}); InstitutionCreateFromOrganizationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { organization_id = json['organization_id']; return this; } Map toJson() => { 'organization_id': organization_id }; createResponse() => InstitutionResponse(); getResponseTypeName() => "InstitutionResponse"; getTypeName() => "InstitutionCreateFromOrganizationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'InstitutionResponse': TypeInfo(TypeOf.Class, create:() => InstitutionResponse()), 'InstitutionCreateFromOrganizationRequest': TypeInfo(TypeOf.Class, create:() => InstitutionCreateFromOrganizationRequest()), });