/* Options: Date: 2025-11-08 10:57:09 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: ConfigureLocalCodePot.* //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; } // @Route("/cmd/configure/lcp", "POST") class ConfigureLocalCodePot implements IReturn, IConvertible, IPost { String? id; String? scopeId; String? scopeName; LCPConfiguration? configuration; ConfigureLocalCodePot({this.id,this.scopeId,this.scopeName,this.configuration}); ConfigureLocalCodePot.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; scopeId = json['scopeId']; scopeName = json['scopeName']; configuration = JsonConverters.fromJson(json['configuration'],'LCPConfiguration',context!); return this; } Map toJson() => { 'id': id, 'scopeId': scopeId, 'scopeName': scopeName, 'configuration': JsonConverters.toJson(configuration,'LCPConfiguration',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "ConfigureLocalCodePot"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'ThresholdInterval': TypeInfo(TypeOf.Class, create:() => ThresholdInterval()), 'LCPConfiguration': TypeInfo(TypeOf.Class, create:() => LCPConfiguration()), 'ConfigureLocalCodePot': TypeInfo(TypeOf.Class, create:() => ConfigureLocalCodePot()), });