/* Options: Date: 2025-12-06 06:07:11 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: AgentPromotionRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AgentPromotion implements IConvertible { int? AgentPromotionId; int? AgentId; String? FirstName; String? LastName; String? FullName; double? PreviousLevel; String? PreviousRank; double? NewLevel; String? NewRank; double? CashFlow; int? AppCount; DateTime? DateCreated; AgentPromotion({this.AgentPromotionId,this.AgentId,this.FirstName,this.LastName,this.FullName,this.PreviousLevel,this.PreviousRank,this.NewLevel,this.NewRank,this.CashFlow,this.AppCount,this.DateCreated}); AgentPromotion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentPromotionId = json['AgentPromotionId']; AgentId = json['AgentId']; FirstName = json['FirstName']; LastName = json['LastName']; FullName = json['FullName']; PreviousLevel = JsonConverters.toDouble(json['PreviousLevel']); PreviousRank = json['PreviousRank']; NewLevel = JsonConverters.toDouble(json['NewLevel']); NewRank = json['NewRank']; CashFlow = JsonConverters.toDouble(json['CashFlow']); AppCount = json['AppCount']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); return this; } Map toJson() => { 'AgentPromotionId': AgentPromotionId, 'AgentId': AgentId, 'FirstName': FirstName, 'LastName': LastName, 'FullName': FullName, 'PreviousLevel': PreviousLevel, 'PreviousRank': PreviousRank, 'NewLevel': NewLevel, 'NewRank': NewRank, 'CashFlow': CashFlow, 'AppCount': AppCount, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!) }; getTypeName() => "AgentPromotion"; TypeContext? context = _ctx; } class AgentPromotionResponse implements IConvertible { ResponseStatus? ResponseStatus; List? AgentPromotion = []; AgentPromotionResponse({this.ResponseStatus,this.AgentPromotion}); AgentPromotionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); AgentPromotion = JsonConverters.fromJson(json['AgentPromotion'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'AgentPromotion': JsonConverters.toJson(AgentPromotion,'List',context!) }; getTypeName() => "AgentPromotionResponse"; TypeContext? context = _ctx; } // @Route("/v1/AgentPromotion/{StartDate}", "GET,OPTIONS") // @Route("/v1/AgentPromotion/{StartDate}/{EndDate}", "GET,OPTIONS") class AgentPromotionRequest implements IReturn, IConvertible, IGet { DateTime? StartDate; DateTime? EndDate; AgentPromotionRequest({this.StartDate,this.EndDate}); AgentPromotionRequest.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() => AgentPromotionResponse(); getResponseTypeName() => "AgentPromotionResponse"; getTypeName() => "AgentPromotionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgentPromotion': TypeInfo(TypeOf.Class, create:() => AgentPromotion()), 'AgentPromotionResponse': TypeInfo(TypeOf.Class, create:() => AgentPromotionResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgentPromotionRequest': TypeInfo(TypeOf.Class, create:() => AgentPromotionRequest()), });