/* Options: Date: 2025-12-06 04:39:55 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w1.api.bengabet.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; double? end; ThresholdInterval({this.start,this.end}); ThresholdInterval.fromJson(Map json) { fromMap(json); } fromMap(Map json) { start = JsonConverters.toDouble(json['start']); end = JsonConverters.toDouble(json['end']); return this; } Map toJson() => { 'start': start, 'end': end }; getTypeName() => "ThresholdInterval"; TypeContext? context = _ctx; } class GCPConfiguration implements IConvertible { bool? isActive; ThresholdInterval? interval; double? pct; double? reservePct; double? totalPct; GCPConfiguration({this.isActive,this.interval,this.pct,this.reservePct,this.totalPct}); GCPConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isActive = json['isActive']; interval = JsonConverters.fromJson(json['interval'],'ThresholdInterval',context!); pct = JsonConverters.toDouble(json['pct']); reservePct = JsonConverters.toDouble(json['reservePct']); totalPct = JsonConverters.toDouble(json['totalPct']); return this; } Map toJson() => { 'isActive': isActive, 'interval': JsonConverters.toJson(interval,'ThresholdInterval',context!), 'pct': pct, 'reservePct': reservePct, 'totalPct': totalPct }; getTypeName() => "GCPConfiguration"; TypeContext? context = _ctx; } class GCPAccumulation implements IConvertible { double? amount; double? reserveAmount; double? threshold; GCPConfiguration? cfg; GCPAccumulation({this.amount,this.reserveAmount,this.threshold,this.cfg}); GCPAccumulation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amount = JsonConverters.toDouble(json['amount']); reserveAmount = JsonConverters.toDouble(json['reserveAmount']); threshold = JsonConverters.toDouble(json['threshold']); cfg = JsonConverters.fromJson(json['cfg'],'GCPConfiguration',context!); return this; } Map toJson() => { 'amount': amount, 'reserveAmount': reserveAmount, 'threshold': threshold, '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: 's4w1.api.bengabet.webhop.biz', types: { 'ThresholdInterval': TypeInfo(TypeOf.Class, create:() => ThresholdInterval()), 'GCPConfiguration': TypeInfo(TypeOf.Class, create:() => GCPConfiguration()), 'GCPAccumulation': TypeInfo(TypeOf.Class, create:() => GCPAccumulation()), 'GlobalCodePotAccumulations': TypeInfo(TypeOf.Class, create:() => GlobalCodePotAccumulations()), 'GetGlobalCodePotAccumulation': TypeInfo(TypeOf.Class, create:() => GetGlobalCodePotAccumulation()), });