/* Options: Date: 2025-11-09 11:03:44 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w2.api.bettor.cc //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetGlobalCodePotConfiguration.* //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 GlobalCodePotConfigurations implements IConvertible { String? id; GCPConfiguration? cfg; GlobalCodePotConfigurations({this.id,this.cfg}); GlobalCodePotConfigurations.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; cfg = JsonConverters.fromJson(json['cfg'],'GCPConfiguration',context!); return this; } Map toJson() => { 'id': id, 'cfg': JsonConverters.toJson(cfg,'GCPConfiguration',context!) }; getTypeName() => "GlobalCodePotConfigurations"; TypeContext? context = _ctx; } // @Route("/qry/global-code-pot/config") class GetGlobalCodePotConfiguration implements IReturn, IConvertible, IPost { GetGlobalCodePotConfiguration(); GetGlobalCodePotConfiguration.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GlobalCodePotConfigurations(); getResponseTypeName() => "GlobalCodePotConfigurations"; getTypeName() => "GetGlobalCodePotConfiguration"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'ThresholdInterval': TypeInfo(TypeOf.Class, create:() => ThresholdInterval()), 'GCPConfiguration': TypeInfo(TypeOf.Class, create:() => GCPConfiguration()), 'GlobalCodePotConfigurations': TypeInfo(TypeOf.Class, create:() => GlobalCodePotConfigurations()), 'GetGlobalCodePotConfiguration': TypeInfo(TypeOf.Class, create:() => GetGlobalCodePotConfiguration()), });