/* Options: Date: 2025-12-06 07:07:54 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: SlotDistrictRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SchoolAgent implements IConvertible { int? AgentId; String? AgentName; int? SlotDistrictApprovalID; SchoolAgent({this.AgentId,this.AgentName,this.SlotDistrictApprovalID}); SchoolAgent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; AgentName = json['AgentName']; SlotDistrictApprovalID = json['SlotDistrictApprovalID']; return this; } Map toJson() => { 'AgentId': AgentId, 'AgentName': AgentName, 'SlotDistrictApprovalID': SlotDistrictApprovalID }; getTypeName() => "SchoolAgent"; TypeContext? context = _ctx; } class SlotDistrictSchool implements IConvertible { int? SchoolId; String? SchoolName; List? AgentList = []; SlotDistrictSchool({this.SchoolId,this.SchoolName,this.AgentList}); SlotDistrictSchool.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SchoolId = json['SchoolId']; SchoolName = json['SchoolName']; AgentList = JsonConverters.fromJson(json['AgentList'],'List',context!); return this; } Map toJson() => { 'SchoolId': SchoolId, 'SchoolName': SchoolName, 'AgentList': JsonConverters.toJson(AgentList,'List',context!) }; getTypeName() => "SlotDistrictSchool"; TypeContext? context = _ctx; } class SlotDistrict implements IConvertible { int? ID; String? Name; String? County; int? DistrictId; String? DistrictName; String? Address_Physical; String? Address_Mailing; String? City; String? Zip; String? Zip_4; int? StateId; String? State; String? Phone; double? NumEmployees; int? NumSchools; String? Type; bool? Status_NLG; bool? Status_Midland; bool? Status_Great_American; bool? Status_VOYA; int? MVP; int? RVP; List? Schools = []; double? MilesAway; bool? HasComments; SlotDistrict({this.ID,this.Name,this.County,this.DistrictId,this.DistrictName,this.Address_Physical,this.Address_Mailing,this.City,this.Zip,this.Zip_4,this.StateId,this.State,this.Phone,this.NumEmployees,this.NumSchools,this.Type,this.Status_NLG,this.Status_Midland,this.Status_Great_American,this.Status_VOYA,this.MVP,this.RVP,this.Schools,this.MilesAway,this.HasComments}); SlotDistrict.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; Name = json['Name']; County = json['County']; DistrictId = json['DistrictId']; DistrictName = json['DistrictName']; Address_Physical = json['Address_Physical']; Address_Mailing = json['Address_Mailing']; City = json['City']; Zip = json['Zip']; Zip_4 = json['Zip_4']; StateId = json['StateId']; State = json['State']; Phone = json['Phone']; NumEmployees = JsonConverters.toDouble(json['NumEmployees']); NumSchools = json['NumSchools']; Type = json['Type']; Status_NLG = json['Status_NLG']; Status_Midland = json['Status_Midland']; Status_Great_American = json['Status_Great_American']; Status_VOYA = json['Status_VOYA']; MVP = json['MVP']; RVP = json['RVP']; Schools = JsonConverters.fromJson(json['Schools'],'List',context!); MilesAway = JsonConverters.toDouble(json['MilesAway']); HasComments = json['HasComments']; return this; } Map toJson() => { 'ID': ID, 'Name': Name, 'County': County, 'DistrictId': DistrictId, 'DistrictName': DistrictName, 'Address_Physical': Address_Physical, 'Address_Mailing': Address_Mailing, 'City': City, 'Zip': Zip, 'Zip_4': Zip_4, 'StateId': StateId, 'State': State, 'Phone': Phone, 'NumEmployees': NumEmployees, 'NumSchools': NumSchools, 'Type': Type, 'Status_NLG': Status_NLG, 'Status_Midland': Status_Midland, 'Status_Great_American': Status_Great_American, 'Status_VOYA': Status_VOYA, 'MVP': MVP, 'RVP': RVP, 'Schools': JsonConverters.toJson(Schools,'List',context!), 'MilesAway': MilesAway, 'HasComments': HasComments }; getTypeName() => "SlotDistrict"; TypeContext? context = _ctx; } class SlotDistrictResponse implements IConvertible { ResponseStatus? ResponseStatus; List? SlotDistrict = []; SlotDistrictResponse({this.ResponseStatus,this.SlotDistrict}); SlotDistrictResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); SlotDistrict = JsonConverters.fromJson(json['SlotDistrict'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'SlotDistrict': JsonConverters.toJson(SlotDistrict,'List',context!) }; getTypeName() => "SlotDistrictResponse"; TypeContext? context = _ctx; } // @Route("/v1/SlotDistrict", "POST,OPTIONS") // @Route("/v1/SlotDistrict/{ID}", "PUT,DELETE,OPTIONS") class SlotDistrictRequest implements IReturn, IConvertible, IPut { SlotDistrict? SlotDistrict; int? ID; SlotDistrictRequest({this.SlotDistrict,this.ID}); SlotDistrictRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SlotDistrict = JsonConverters.fromJson(json['SlotDistrict'],'SlotDistrict',context!); ID = json['ID']; return this; } Map toJson() => { 'SlotDistrict': JsonConverters.toJson(SlotDistrict,'SlotDistrict',context!), 'ID': ID }; createResponse() => SlotDistrictResponse(); getResponseTypeName() => "SlotDistrictResponse"; getTypeName() => "SlotDistrictRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SchoolAgent': TypeInfo(TypeOf.Class, create:() => SchoolAgent()), 'SlotDistrictSchool': TypeInfo(TypeOf.Class, create:() => SlotDistrictSchool()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SlotDistrict': TypeInfo(TypeOf.Class, create:() => SlotDistrict()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SlotDistrictResponse': TypeInfo(TypeOf.Class, create:() => SlotDistrictResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SlotDistrictRequest': TypeInfo(TypeOf.Class, create:() => SlotDistrictRequest()), });