/* Options: Date: 2025-12-06 08:30:37 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: ProductionRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Production implements IConvertible { int? AgentId; int? MVPID; int? AVPID; int? RVPID; String? FirstName; String? LastName; String? MiddleInitial; double? AgentLevel; String? Rank; String? FullName; bool? IsMVP; bool? IsRVP; bool? IsAVP; int? PolicyCount; double? AppCount; double? Points; double? Cashflow; Production({this.AgentId,this.MVPID,this.AVPID,this.RVPID,this.FirstName,this.LastName,this.MiddleInitial,this.AgentLevel,this.Rank,this.FullName,this.IsMVP,this.IsRVP,this.IsAVP,this.PolicyCount,this.AppCount,this.Points,this.Cashflow}); Production.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; MVPID = json['MVPID']; AVPID = json['AVPID']; RVPID = json['RVPID']; FirstName = json['FirstName']; LastName = json['LastName']; MiddleInitial = json['MiddleInitial']; AgentLevel = JsonConverters.toDouble(json['AgentLevel']); Rank = json['Rank']; FullName = json['FullName']; IsMVP = json['IsMVP']; IsRVP = json['IsRVP']; IsAVP = json['IsAVP']; PolicyCount = json['PolicyCount']; AppCount = JsonConverters.toDouble(json['AppCount']); Points = JsonConverters.toDouble(json['Points']); Cashflow = JsonConverters.toDouble(json['Cashflow']); return this; } Map toJson() => { 'AgentId': AgentId, 'MVPID': MVPID, 'AVPID': AVPID, 'RVPID': RVPID, 'FirstName': FirstName, 'LastName': LastName, 'MiddleInitial': MiddleInitial, 'AgentLevel': AgentLevel, 'Rank': Rank, 'FullName': FullName, 'IsMVP': IsMVP, 'IsRVP': IsRVP, 'IsAVP': IsAVP, 'PolicyCount': PolicyCount, 'AppCount': AppCount, 'Points': Points, 'Cashflow': Cashflow }; getTypeName() => "Production"; TypeContext? context = _ctx; } class ProductionResponse implements IConvertible { ResponseStatus? ResponseStatus; List? ReportData = []; ProductionResponse({this.ResponseStatus,this.ReportData}); ProductionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ReportData = JsonConverters.fromJson(json['ReportData'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ReportData': JsonConverters.toJson(ReportData,'List',context!) }; getTypeName() => "ProductionResponse"; TypeContext? context = _ctx; } // @Route("/v1/Production", "GET") // @Route("/v1/Production/DateRange/{StartDate}/{EndDate}", "GET") class ProductionRequest implements IReturn, IConvertible, IGet { DateTime? StartDate; DateTime? EndDate; ProductionRequest({this.StartDate,this.EndDate}); ProductionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!); EndDate = JsonConverters.fromJson(json['EndDate'],'DateTime',context!); return this; } Map toJson() => { 'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!), 'EndDate': JsonConverters.toJson(EndDate,'DateTime',context!) }; createResponse() => ProductionResponse(); getResponseTypeName() => "ProductionResponse"; getTypeName() => "ProductionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Production': TypeInfo(TypeOf.Class, create:() => Production()), 'ProductionResponse': TypeInfo(TypeOf.Class, create:() => ProductionResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ProductionRequest': TypeInfo(TypeOf.Class, create:() => ProductionRequest()), });