/* Options: Date: 2025-11-08 10:56:31 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: GetLocalCodePotConfigs.* //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 LCPConfiguration implements IConvertible { bool? isActive; ThresholdInterval? interval; double? pct; LCPConfiguration({this.isActive,this.interval,this.pct}); LCPConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isActive = json['isActive']; interval = JsonConverters.fromJson(json['interval'],'ThresholdInterval',context!); pct = JsonConverters.toDouble(json['pct']); return this; } Map toJson() => { 'isActive': isActive, 'interval': JsonConverters.toJson(interval,'ThresholdInterval',context!), 'pct': pct }; getTypeName() => "LCPConfiguration"; TypeContext? context = _ctx; } class Configuration implements IConvertible { String? id; String? name; LCPConfiguration? cfg; Configuration({this.id,this.name,this.cfg}); Configuration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; cfg = JsonConverters.fromJson(json['cfg'],'LCPConfiguration',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'cfg': JsonConverters.toJson(cfg,'LCPConfiguration',context!) }; getTypeName() => "Configuration"; TypeContext? context = _ctx; } class LocalCodePotConfigurations implements IConvertible { String? id; Map? configurations; LocalCodePotConfigurations({this.id,this.configurations}); LocalCodePotConfigurations.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; configurations = JsonConverters.fromJson(json['configurations'],'Map',context!); return this; } Map toJson() => { 'id': id, 'configurations': JsonConverters.toJson(configurations,'Map',context!) }; getTypeName() => "LocalCodePotConfigurations"; TypeContext? context = _ctx; } // @Route("/qry/lcp/configs") class GetLocalCodePotConfigs implements IReturn, IConvertible, IPost { GetLocalCodePotConfigs(); GetLocalCodePotConfigs.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => LocalCodePotConfigurations(); getResponseTypeName() => "LocalCodePotConfigurations"; getTypeName() => "GetLocalCodePotConfigs"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'ThresholdInterval': TypeInfo(TypeOf.Class, create:() => ThresholdInterval()), 'LCPConfiguration': TypeInfo(TypeOf.Class, create:() => LCPConfiguration()), 'Configuration': TypeInfo(TypeOf.Class, create:() => Configuration()), 'LocalCodePotConfigurations': TypeInfo(TypeOf.Class, create:() => LocalCodePotConfigurations()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetLocalCodePotConfigs': TypeInfo(TypeOf.Class, create:() => GetLocalCodePotConfigs()), });