/* Options: Date: 2024-12-29 03:37:47 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: InstitutionRelationshipsUpdateRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class InstitutionRelationshipRequest implements IConvertible { int? related_institution_id; String? relationship_type; String? notes; InstitutionRelationshipRequest({this.related_institution_id,this.relationship_type,this.notes}); InstitutionRelationshipRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { related_institution_id = json['related_institution_id']; relationship_type = json['relationship_type']; notes = json['notes']; return this; } Map toJson() => { 'related_institution_id': related_institution_id, 'relationship_type': relationship_type, 'notes': notes }; getTypeName() => "InstitutionRelationshipRequest"; TypeContext? context = _ctx; } // @Route("/Academic/Institution/{institution_id}/UpdateRelationships", "POST") class InstitutionRelationshipsUpdateRequest implements IReturn, IConvertible, IPost { int? institution_id; List? related_institutions; String? authorizing_uuid; InstitutionRelationshipsUpdateRequest({this.institution_id,this.related_institutions,this.authorizing_uuid}); InstitutionRelationshipsUpdateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { institution_id = json['institution_id']; related_institutions = JsonConverters.fromJson(json['related_institutions'],'List',context!); authorizing_uuid = json['authorizing_uuid']; return this; } Map toJson() => { 'institution_id': institution_id, 'related_institutions': JsonConverters.toJson(related_institutions,'List',context!), 'authorizing_uuid': authorizing_uuid }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "InstitutionRelationshipsUpdateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'InstitutionRelationshipRequest': TypeInfo(TypeOf.Class, create:() => InstitutionRelationshipRequest()), 'InstitutionRelationshipsUpdateRequest': TypeInfo(TypeOf.Class, create:() => InstitutionRelationshipsUpdateRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });