/* Options: Date: 2025-12-06 06:07:08 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: LeaderboardRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Leaderboard implements IConvertible { int? Position; String? Name; String? Location; double? LifeCashFlow; double? AnnuityCashFlow; double? TotalCashFlow; double? PremiumLife; double? PremiumAnnuity; double? PointsLife; double? PointsAnnuity; double? TotalPoints; bool? IsMVP; bool? IsRVP; bool? IsAVP; bool? IsAgent; String? Phone; String? Upline1Name; String? Upline2Name; Leaderboard({this.Position,this.Name,this.Location,this.LifeCashFlow,this.AnnuityCashFlow,this.TotalCashFlow,this.PremiumLife,this.PremiumAnnuity,this.PointsLife,this.PointsAnnuity,this.TotalPoints,this.IsMVP,this.IsRVP,this.IsAVP,this.IsAgent,this.Phone,this.Upline1Name,this.Upline2Name}); Leaderboard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Position = json['Position']; Name = json['Name']; Location = json['Location']; LifeCashFlow = JsonConverters.toDouble(json['LifeCashFlow']); AnnuityCashFlow = JsonConverters.toDouble(json['AnnuityCashFlow']); TotalCashFlow = JsonConverters.toDouble(json['TotalCashFlow']); PremiumLife = JsonConverters.toDouble(json['PremiumLife']); PremiumAnnuity = JsonConverters.toDouble(json['PremiumAnnuity']); PointsLife = JsonConverters.toDouble(json['PointsLife']); PointsAnnuity = JsonConverters.toDouble(json['PointsAnnuity']); TotalPoints = JsonConverters.toDouble(json['TotalPoints']); IsMVP = json['IsMVP']; IsRVP = json['IsRVP']; IsAVP = json['IsAVP']; IsAgent = json['IsAgent']; Phone = json['Phone']; Upline1Name = json['Upline1Name']; Upline2Name = json['Upline2Name']; return this; } Map toJson() => { 'Position': Position, 'Name': Name, 'Location': Location, 'LifeCashFlow': LifeCashFlow, 'AnnuityCashFlow': AnnuityCashFlow, 'TotalCashFlow': TotalCashFlow, 'PremiumLife': PremiumLife, 'PremiumAnnuity': PremiumAnnuity, 'PointsLife': PointsLife, 'PointsAnnuity': PointsAnnuity, 'TotalPoints': TotalPoints, 'IsMVP': IsMVP, 'IsRVP': IsRVP, 'IsAVP': IsAVP, 'IsAgent': IsAgent, 'Phone': Phone, 'Upline1Name': Upline1Name, 'Upline2Name': Upline2Name }; getTypeName() => "Leaderboard"; TypeContext? context = _ctx; } class LeaderboardResponse implements IConvertible { ResponseStatus? ResponseStatus; List? AllData = []; List? MVP = []; List? AVP = []; List? RVP = []; List? Agents = []; LeaderboardResponse({this.ResponseStatus,this.AllData,this.MVP,this.AVP,this.RVP,this.Agents}); LeaderboardResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); AllData = JsonConverters.fromJson(json['AllData'],'List',context!); MVP = JsonConverters.fromJson(json['MVP'],'List',context!); AVP = JsonConverters.fromJson(json['AVP'],'List',context!); RVP = JsonConverters.fromJson(json['RVP'],'List',context!); Agents = JsonConverters.fromJson(json['Agents'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'AllData': JsonConverters.toJson(AllData,'List',context!), 'MVP': JsonConverters.toJson(MVP,'List',context!), 'AVP': JsonConverters.toJson(AVP,'List',context!), 'RVP': JsonConverters.toJson(RVP,'List',context!), 'Agents': JsonConverters.toJson(Agents,'List',context!) }; getTypeName() => "LeaderboardResponse"; TypeContext? context = _ctx; } // @Route("/v1/Leaderboard", "POST,OPTIONS") // @Route("/v1/Leaderboard/{LeaderboardType}/{StartDate}/{EndDate}", "GET,OPTIONS") class LeaderboardRequest implements IReturn, IConvertible, IGet { String? StartDate; String? EndDate; String? LeaderboardType; LeaderboardRequest({this.StartDate,this.EndDate,this.LeaderboardType}); LeaderboardRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StartDate = json['StartDate']; EndDate = json['EndDate']; LeaderboardType = json['LeaderboardType']; return this; } Map toJson() => { 'StartDate': StartDate, 'EndDate': EndDate, 'LeaderboardType': LeaderboardType }; createResponse() => LeaderboardResponse(); getResponseTypeName() => "LeaderboardResponse"; getTypeName() => "LeaderboardRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Leaderboard': TypeInfo(TypeOf.Class, create:() => Leaderboard()), 'LeaderboardResponse': TypeInfo(TypeOf.Class, create:() => LeaderboardResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LeaderboardRequest': TypeInfo(TypeOf.Class, create:() => LeaderboardRequest()), });