/* Options: Date: 2025-05-10 03:40:51 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: C2BGetPlanInfoRequest.* //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 C2BPlanGeneric implements IConvertible { // @DataMember int? Id; // @DataMember String? Code; // @DataMember String? Name; // @DataMember int? Months; // @DataMember String? Topic; // @DataMember String? FinalTopic; // @DataMember String? Url; C2BPlanGeneric({this.Id,this.Code,this.Name,this.Months,this.Topic,this.FinalTopic,this.Url}); C2BPlanGeneric.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Code = json['Code']; Name = json['Name']; Months = json['Months']; Topic = json['Topic']; FinalTopic = json['FinalTopic']; Url = json['Url']; return this; } Map toJson() => { 'Id': Id, 'Code': Code, 'Name': Name, 'Months': Months, 'Topic': Topic, 'FinalTopic': FinalTopic, 'Url': Url }; getTypeName() => "C2BPlanGeneric"; 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 C2BGetPlanInfoResponse extends BaseResponse implements IConvertible { // @DataMember List? Plans; C2BGetPlanInfoResponse({this.Plans}); C2BGetPlanInfoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Plans = JsonConverters.fromJson(json['Plans'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Plans': JsonConverters.toJson(Plans,'List',context!) }); getTypeName() => "C2BGetPlanInfoResponse"; TypeContext? context = _ctx; } /** * C2BGetPlanInfoRequires active-e Contracts Service. */ // @Route("/C2BGetPlanInfo", "POST, GET") // @DataContract class C2BGetPlanInfoRequest extends BaseRequest implements IReturn, IConvertible, IPost { /** * If sent, only info on the plan code sent will be returned. Otherwise info on all plan codes will be returned. */ // @DataMember // @ApiMember(DataType="string", Description="If sent, only info on the plan code sent will be returned. Otherwise info on all plan codes will be returned.", Name="PlanCode", ParameterType="query") String? PlanCode; C2BGetPlanInfoRequest({this.PlanCode}); C2BGetPlanInfoRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); PlanCode = json['PlanCode']; return this; } Map toJson() => super.toJson()..addAll({ 'PlanCode': PlanCode }); createResponse() => C2BGetPlanInfoResponse(); getResponseTypeName() => "C2BGetPlanInfoResponse"; getTypeName() => "C2BGetPlanInfoRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'C2BPlanGeneric': TypeInfo(TypeOf.Class, create:() => C2BPlanGeneric()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'C2BGetPlanInfoResponse': TypeInfo(TypeOf.Class, create:() => C2BGetPlanInfoResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'C2BGetPlanInfoRequest': TypeInfo(TypeOf.Class, create:() => C2BGetPlanInfoRequest()), });