/* Options: Date: 2026-11-07 04:09:26 Version: 10.42 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w2.api.bettor.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetGlobalCodePotAccumulation.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ThresholdInterval implements IConvertible { double start = 0; double end = 0; ThresholdInterval({this.start=0,this.end=0}); ThresholdInterval.fromJson(Map json) { fromMap(json); } fromMap(Map json) { start = JsonConverters.toDouble(json['start']) ?? 0; end = JsonConverters.toDouble(json['end']) ?? 0; return this; } Map toJson() => { 'start': start, 'end': end }; getTypeName() => "ThresholdInterval"; TypeContext? context = _ctx; } class GCPWinnerCooldownPolicyConfig implements IConvertible { bool? isActive; int cooldownIntervalInDays = 0; GCPWinnerCooldownPolicyConfig({this.isActive,this.cooldownIntervalInDays=0}); GCPWinnerCooldownPolicyConfig.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isActive = json['isActive']; cooldownIntervalInDays = json['cooldownIntervalInDays'] ?? 0; return this; } Map toJson() => { 'isActive': isActive, 'cooldownIntervalInDays': cooldownIntervalInDays }; getTypeName() => "GCPWinnerCooldownPolicyConfig"; TypeContext? context = _ctx; } class GCPConfiguration implements IConvertible { bool? isActive; ThresholdInterval? interval; double pct = 0; double reservePct = 0; double totalPct = 0; GCPWinnerCooldownPolicyConfig? winnerCooldownPolicy; GCPConfiguration({this.isActive,this.interval,this.pct=0,this.reservePct=0,this.totalPct=0,this.winnerCooldownPolicy}); GCPConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isActive = json['isActive']; interval = JsonConverters.fromJson(json['interval'],'ThresholdInterval',context!); pct = JsonConverters.toDouble(json['pct']) ?? 0; reservePct = JsonConverters.toDouble(json['reservePct']) ?? 0; totalPct = JsonConverters.toDouble(json['totalPct']) ?? 0; winnerCooldownPolicy = JsonConverters.fromJson(json['winnerCooldownPolicy'],'GCPWinnerCooldownPolicyConfig',context!); return this; } Map toJson() => { 'isActive': isActive, 'interval': JsonConverters.toJson(interval,'ThresholdInterval',context!), 'pct': pct, 'reservePct': reservePct, 'totalPct': totalPct, 'winnerCooldownPolicy': JsonConverters.toJson(winnerCooldownPolicy,'GCPWinnerCooldownPolicyConfig',context!) }; getTypeName() => "GCPConfiguration"; TypeContext? context = _ctx; } class GCPAccumulation implements IConvertible { double amount = 0; double reserveAmount = 0; GCPConfiguration? cfg; GCPAccumulation({this.amount=0,this.reserveAmount=0,this.cfg}); GCPAccumulation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amount = JsonConverters.toDouble(json['amount']) ?? 0; reserveAmount = JsonConverters.toDouble(json['reserveAmount']) ?? 0; cfg = JsonConverters.fromJson(json['cfg'],'GCPConfiguration',context!); return this; } Map toJson() => { 'amount': amount, 'reserveAmount': reserveAmount, 'cfg': JsonConverters.toJson(cfg,'GCPConfiguration',context!) }; getTypeName() => "GCPAccumulation"; TypeContext? context = _ctx; } class GlobalCodePotAccumulations implements IConvertible { String? id; GCPAccumulation? accumulation; String? currentRoundId; GlobalCodePotAccumulations({this.id,this.accumulation,this.currentRoundId}); GlobalCodePotAccumulations.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; accumulation = JsonConverters.fromJson(json['accumulation'],'GCPAccumulation',context!); currentRoundId = json['currentRoundId']; return this; } Map toJson() => { 'id': id, 'accumulation': JsonConverters.toJson(accumulation,'GCPAccumulation',context!), 'currentRoundId': currentRoundId }; getTypeName() => "GlobalCodePotAccumulations"; TypeContext? context = _ctx; } // @Route("/qry/global-code-pot/accumulations") class GetGlobalCodePotAccumulation implements IReturn, IConvertible, IPost { GetGlobalCodePotAccumulation(); GetGlobalCodePotAccumulation.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GlobalCodePotAccumulations(); getResponseTypeName() => "GlobalCodePotAccumulations"; getTypeName() => "GetGlobalCodePotAccumulation"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.webhop.biz', types: { 'ThresholdInterval': TypeInfo(TypeOf.Class, create:() => ThresholdInterval()), 'GCPWinnerCooldownPolicyConfig': TypeInfo(TypeOf.Class, create:() => GCPWinnerCooldownPolicyConfig()), 'GCPConfiguration': TypeInfo(TypeOf.Class, create:() => GCPConfiguration()), 'GCPAccumulation': TypeInfo(TypeOf.Class, create:() => GCPAccumulation()), 'GlobalCodePotAccumulations': TypeInfo(TypeOf.Class, create:() => GlobalCodePotAccumulations()), 'GetGlobalCodePotAccumulation': TypeInfo(TypeOf.Class, create:() => GetGlobalCodePotAccumulation()), });