/* Options: Date: 2025-12-06 06:06:16 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: ActivityDataRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ActivityPlan implements IConvertible { int? Id; int? AgentId; int? EventTypeId; int? Goal; DateTime? DateFrom; DateTime? DateTo; DateTime? DateCreated; int? MthlyCashFlow; int? YTDCashFlow; int? Recruit; String? EventTypeName; int? Actual; ActivityPlan({this.Id,this.AgentId,this.EventTypeId,this.Goal,this.DateFrom,this.DateTo,this.DateCreated,this.MthlyCashFlow,this.YTDCashFlow,this.Recruit,this.EventTypeName,this.Actual}); ActivityPlan.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; AgentId = json['AgentId']; EventTypeId = json['EventTypeId']; Goal = json['Goal']; DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!); DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!); DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); MthlyCashFlow = json['MthlyCashFlow']; YTDCashFlow = json['YTDCashFlow']; Recruit = json['Recruit']; EventTypeName = json['EventTypeName']; Actual = json['Actual']; return this; } Map toJson() => { 'Id': Id, 'AgentId': AgentId, 'EventTypeId': EventTypeId, 'Goal': Goal, 'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!), 'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!), 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'MthlyCashFlow': MthlyCashFlow, 'YTDCashFlow': YTDCashFlow, 'Recruit': Recruit, 'EventTypeName': EventTypeName, 'Actual': Actual }; getTypeName() => "ActivityPlan"; TypeContext? context = _ctx; } class ActivityPlanExtended implements IConvertible { int? AppCount; int? AvgFlow; int? AvgTransfer; int? AvgLife; double? LifePerAnnuity; double? FlowTransfer; double? TransferRatio; ActivityPlanExtended({this.AppCount,this.AvgFlow,this.AvgTransfer,this.AvgLife,this.LifePerAnnuity,this.FlowTransfer,this.TransferRatio}); ActivityPlanExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AppCount = json['AppCount']; AvgFlow = json['AvgFlow']; AvgTransfer = json['AvgTransfer']; AvgLife = json['AvgLife']; LifePerAnnuity = JsonConverters.toDouble(json['LifePerAnnuity']); FlowTransfer = JsonConverters.toDouble(json['FlowTransfer']); TransferRatio = JsonConverters.toDouble(json['TransferRatio']); return this; } Map toJson() => { 'AppCount': AppCount, 'AvgFlow': AvgFlow, 'AvgTransfer': AvgTransfer, 'AvgLife': AvgLife, 'LifePerAnnuity': LifePerAnnuity, 'FlowTransfer': FlowTransfer, 'TransferRatio': TransferRatio }; getTypeName() => "ActivityPlanExtended"; TypeContext? context = _ctx; } class ActivityPlanResponse implements IConvertible { ResponseStatus? ResponseStatus; List? ActivityPlans = []; ActivityPlanExtended? ActivityData; ActivityPlanResponse({this.ResponseStatus,this.ActivityPlans,this.ActivityData}); ActivityPlanResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ActivityPlans = JsonConverters.fromJson(json['ActivityPlans'],'List',context!); ActivityData = JsonConverters.fromJson(json['ActivityData'],'ActivityPlanExtended',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ActivityPlans': JsonConverters.toJson(ActivityPlans,'List',context!), 'ActivityData': JsonConverters.toJson(ActivityData,'ActivityPlanExtended',context!) }; getTypeName() => "ActivityPlanResponse"; TypeContext? context = _ctx; } // @Route("/v1/ActivityData/{AgentId}/{DateFrom}/{DateTo}", "GET,OPTIONS") class ActivityDataRequest implements IReturn, IConvertible, IGet { int? AgentId; DateTime? DateFrom; DateTime? DateTo; ActivityDataRequest({this.AgentId,this.DateFrom,this.DateTo}); ActivityDataRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!); DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!); return this; } Map toJson() => { 'AgentId': AgentId, 'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!), 'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!) }; createResponse() => ActivityPlanResponse(); getResponseTypeName() => "ActivityPlanResponse"; getTypeName() => "ActivityDataRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ActivityPlan': TypeInfo(TypeOf.Class, create:() => ActivityPlan()), 'ActivityPlanExtended': TypeInfo(TypeOf.Class, create:() => ActivityPlanExtended()), 'ActivityPlanResponse': TypeInfo(TypeOf.Class, create:() => ActivityPlanResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ActivityDataRequest': TypeInfo(TypeOf.Class, create:() => ActivityDataRequest()), });