/* Options: Date: 2025-05-10 04:56:03 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: C2BGetDistrictInfoRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class BaseRequest implements IConvertible { /** * This is your AIM API Key provided by Tri-Tech */ // @DataMember // @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") String? ApiKey; // @DataMember // @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") String? OAuthToken; BaseRequest({this.ApiKey,this.OAuthToken}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; OAuthToken = json['OAuthToken']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'OAuthToken': OAuthToken }; getTypeName() => "BaseRequest"; TypeContext? context = _ctx; } // @DataContract class C2BDistrictGeneric implements IConvertible { // @DataMember String? DistrictName; // @DataMember int? SchoolCount; // @DataMember int? TeacherCount; // @DataMember String? Topic; // @DataMember int? Id; C2BDistrictGeneric({this.DistrictName,this.SchoolCount,this.TeacherCount,this.Topic,this.Id}); C2BDistrictGeneric.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DistrictName = json['DistrictName']; SchoolCount = json['SchoolCount']; TeacherCount = json['TeacherCount']; Topic = json['Topic']; Id = json['Id']; return this; } Map toJson() => { 'DistrictName': DistrictName, 'SchoolCount': SchoolCount, 'TeacherCount': TeacherCount, 'Topic': Topic, 'Id': Id }; getTypeName() => "C2BDistrictGeneric"; TypeContext? context = _ctx; } // @DataContract class BaseResponse implements IConvertible { /** * */ // @DataMember // @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") BaseResponseResult? Status; BaseResponse({this.Status}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = JsonConverters.fromJson(json['Status'],'BaseResponseResult',context!); return this; } Map toJson() => { 'Status': JsonConverters.toJson(Status,'BaseResponseResult',context!) }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } // @DataContract class C2BGetDistrictInfoResponse extends BaseResponse implements IConvertible { // @DataMember List? Districts; // @DataMember bool? TeacherTableExists; C2BGetDistrictInfoResponse({this.Districts,this.TeacherTableExists}); C2BGetDistrictInfoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Districts = JsonConverters.fromJson(json['Districts'],'List',context!); TeacherTableExists = json['TeacherTableExists']; return this; } Map toJson() => super.toJson()..addAll({ 'Districts': JsonConverters.toJson(Districts,'List',context!), 'TeacherTableExists': TeacherTableExists }); getTypeName() => "C2BGetDistrictInfoResponse"; TypeContext? context = _ctx; } /** * C2BGetDistrictInfoRequires active-e Contracts Service. */ // @Route("/C2BGetDistrictInfo", "POST, GET") // @DataContract class C2BGetDistrictInfoRequest extends BaseRequest implements IReturn, IConvertible, IPost { /** * If sent, only districts with schools of the sent plan code will be returned. */ // @DataMember // @ApiMember(DataType="string", Description="If sent, only districts with schools of the sent plan code will be returned.", Format="date", Name="PlanCode", ParameterType="query") String? PlanCode; /** * ID of the Instrument record. Optional. */ // @DataMember // @ApiMember(DataType="integer", Description="ID of the Instrument record. Optional.", Format="int64", Name="RinPk", ParameterType="query") int? RinPk; /** * Optional Request Type. Valid values are Contract and Shipping. */ // @DataMember // @ApiMember(DataType="string", Description="Optional Request Type. Valid values are Contract and Shipping.", Name="RequestType", ParameterType="query") String? RequestType; C2BGetDistrictInfoRequest({this.PlanCode,this.RinPk,this.RequestType}); C2BGetDistrictInfoRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); PlanCode = json['PlanCode']; RinPk = json['RinPk']; RequestType = json['RequestType']; return this; } Map toJson() => super.toJson()..addAll({ 'PlanCode': PlanCode, 'RinPk': RinPk, 'RequestType': RequestType }); createResponse() => C2BGetDistrictInfoResponse(); getResponseTypeName() => "C2BGetDistrictInfoResponse"; getTypeName() => "C2BGetDistrictInfoRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'C2BDistrictGeneric': TypeInfo(TypeOf.Class, create:() => C2BDistrictGeneric()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'C2BGetDistrictInfoResponse': TypeInfo(TypeOf.Class, create:() => C2BGetDistrictInfoResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'C2BGetDistrictInfoRequest': TypeInfo(TypeOf.Class, create:() => C2BGetDistrictInfoRequest()), });