/* Options: Date: 2025-12-06 09:24:45 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: AgentPromotionsHistoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AgentPromotionsHistory implements IConvertible { int? AgentLevel; DateTime? PromotionDate; String? Description; String? NextPromotionDescription; String? NextPromotionGuideline; AgentPromotionsHistory({this.AgentLevel,this.PromotionDate,this.Description,this.NextPromotionDescription,this.NextPromotionGuideline}); AgentPromotionsHistory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentLevel = json['AgentLevel']; PromotionDate = JsonConverters.fromJson(json['PromotionDate'],'DateTime',context!); Description = json['Description']; NextPromotionDescription = json['NextPromotionDescription']; NextPromotionGuideline = json['NextPromotionGuideline']; return this; } Map toJson() => { 'AgentLevel': AgentLevel, 'PromotionDate': JsonConverters.toJson(PromotionDate,'DateTime',context!), 'Description': Description, 'NextPromotionDescription': NextPromotionDescription, 'NextPromotionGuideline': NextPromotionGuideline }; getTypeName() => "AgentPromotionsHistory"; TypeContext? context = _ctx; } class AgentPromotionsHistoryResponse implements IConvertible { ResponseStatus? ResponseStatus; List? result = []; AgentPromotionsHistoryResponse({this.ResponseStatus,this.result}); AgentPromotionsHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); result = JsonConverters.fromJson(json['result'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'result': JsonConverters.toJson(result,'List',context!) }; getTypeName() => "AgentPromotionsHistoryResponse"; TypeContext? context = _ctx; } // @Route("/v1/AgentPromotionsHistory/{AgentId}", "GET,OPTIONS") class AgentPromotionsHistoryRequest implements IReturn, IConvertible, IGet { int? AgentId; AgentPromotionsHistoryRequest({this.AgentId}); AgentPromotionsHistoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; return this; } Map toJson() => { 'AgentId': AgentId }; createResponse() => AgentPromotionsHistoryResponse(); getResponseTypeName() => "AgentPromotionsHistoryResponse"; getTypeName() => "AgentPromotionsHistoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgentPromotionsHistory': TypeInfo(TypeOf.Class, create:() => AgentPromotionsHistory()), 'AgentPromotionsHistoryResponse': TypeInfo(TypeOf.Class, create:() => AgentPromotionsHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgentPromotionsHistoryRequest': TypeInfo(TypeOf.Class, create:() => AgentPromotionsHistoryRequest()), });