/* Options: Date: 2025-12-06 07:06:52 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: orgGetSingleRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Organization implements IConvertible { int? OrganizationId; int? OrganizationTypeId; int? StateID; String? StateName; int? DistrictID; String? DistrictName; int? CountyID; String? CountyName; int? SchoolID; String? SchoolName; String? EntityName; String? EntityId; String? Source; int? Pera_ListId; Organization({this.OrganizationId,this.OrganizationTypeId,this.StateID,this.StateName,this.DistrictID,this.DistrictName,this.CountyID,this.CountyName,this.SchoolID,this.SchoolName,this.EntityName,this.EntityId,this.Source,this.Pera_ListId}); Organization.fromJson(Map json) { fromMap(json); } fromMap(Map json) { OrganizationId = json['OrganizationId']; OrganizationTypeId = json['OrganizationTypeId']; StateID = json['StateID']; StateName = json['StateName']; DistrictID = json['DistrictID']; DistrictName = json['DistrictName']; CountyID = json['CountyID']; CountyName = json['CountyName']; SchoolID = json['SchoolID']; SchoolName = json['SchoolName']; EntityName = json['EntityName']; EntityId = json['EntityId']; Source = json['Source']; Pera_ListId = json['Pera_ListId']; return this; } Map toJson() => { 'OrganizationId': OrganizationId, 'OrganizationTypeId': OrganizationTypeId, 'StateID': StateID, 'StateName': StateName, 'DistrictID': DistrictID, 'DistrictName': DistrictName, 'CountyID': CountyID, 'CountyName': CountyName, 'SchoolID': SchoolID, 'SchoolName': SchoolName, 'EntityName': EntityName, 'EntityId': EntityId, 'Source': Source, 'Pera_ListId': Pera_ListId }; getTypeName() => "Organization"; TypeContext? context = _ctx; } class orgGetSingleResponse implements IConvertible { ResponseStatus? ResponseStatus; Organization? org; orgGetSingleResponse({this.ResponseStatus,this.org}); orgGetSingleResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); org = JsonConverters.fromJson(json['org'],'Organization',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'org': JsonConverters.toJson(org,'Organization',context!) }; getTypeName() => "orgGetSingleResponse"; TypeContext? context = _ctx; } // @Route("/v1/Organization/GetSingleBySchoolID/{schoolID}", "GET, OPTIONS") // @Route("/v1/Organization/GetSingleByDistrictID/{districtID}", "GET, OPTIONS") class orgGetSingleRequest implements IReturn, IConvertible, IGet { int? schoolID; int? districtID; orgGetSingleRequest({this.schoolID,this.districtID}); orgGetSingleRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { schoolID = json['schoolID']; districtID = json['districtID']; return this; } Map toJson() => { 'schoolID': schoolID, 'districtID': districtID }; createResponse() => orgGetSingleResponse(); getResponseTypeName() => "orgGetSingleResponse"; getTypeName() => "orgGetSingleRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Organization': TypeInfo(TypeOf.Class, create:() => Organization()), 'orgGetSingleResponse': TypeInfo(TypeOf.Class, create:() => orgGetSingleResponse()), 'orgGetSingleRequest': TypeInfo(TypeOf.Class, create:() => orgGetSingleRequest()), });