/* Options: Date: 2025-11-09 11:08:24 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: GetLocalCodePotAccumulations.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Ref implements IConvertible { String? id; String? val; Ref({this.id,this.val}); Ref.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; val = json['val']; return this; } Map toJson() => { 'id': id, 'val': val }; getTypeName() => "Ref"; TypeContext? context = _ctx; } class BettingApp implements IConvertible { String? name; String? version; BettingApp({this.name,this.version}); BettingApp.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; version = json['version']; return this; } Map toJson() => { 'name': name, 'version': version }; getTypeName() => "BettingApp"; TypeContext? context = _ctx; } class RefEx extends Ref implements IConvertible { RecordDictionary? data; RefEx({this.data}); RefEx.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); data = JsonConverters.fromJson(json['data'],'RecordDictionary',context!); return this; } Map toJson() => super.toJson()..addAll({ 'data': JsonConverters.toJson(data,'RecordDictionary',context!) }); getTypeName() => "RefEx"; TypeContext? context = _ctx; } class Origin implements IConvertible { BettingApp? application; String? ip; RefEx? organization; Ref? region; Ref? locationGroup; RefEx? location; RefEx? device; Ref? clerk; Origin({this.application,this.ip,this.organization,this.region,this.locationGroup,this.location,this.device,this.clerk}); Origin.fromJson(Map json) { fromMap(json); } fromMap(Map json) { application = JsonConverters.fromJson(json['application'],'BettingApp',context!); ip = json['ip']; organization = JsonConverters.fromJson(json['organization'],'RefEx',context!); region = JsonConverters.fromJson(json['region'],'Ref',context!); locationGroup = JsonConverters.fromJson(json['locationGroup'],'Ref',context!); location = JsonConverters.fromJson(json['location'],'RefEx',context!); device = JsonConverters.fromJson(json['device'],'RefEx',context!); clerk = JsonConverters.fromJson(json['clerk'],'Ref',context!); return this; } Map toJson() => { 'application': JsonConverters.toJson(application,'BettingApp',context!), 'ip': ip, 'organization': JsonConverters.toJson(organization,'RefEx',context!), 'region': JsonConverters.toJson(region,'Ref',context!), 'locationGroup': JsonConverters.toJson(locationGroup,'Ref',context!), 'location': JsonConverters.toJson(location,'RefEx',context!), 'device': JsonConverters.toJson(device,'RefEx',context!), 'clerk': JsonConverters.toJson(clerk,'Ref',context!) }; getTypeName() => "Origin"; TypeContext? context = _ctx; } 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 WinnerByCode implements IConvertible { String? roundId; DateTime? drawnAtUtc; String? slipId; String? betId; String? code; double? amount; Origin? origin; Ref? bettor; String? locationAddressOrBettorInfo; WinnerByCode({this.roundId,this.drawnAtUtc,this.slipId,this.betId,this.code,this.amount,this.origin,this.bettor,this.locationAddressOrBettorInfo}); WinnerByCode.fromJson(Map json) { fromMap(json); } fromMap(Map json) { roundId = json['roundId']; drawnAtUtc = JsonConverters.fromJson(json['drawnAtUtc'],'DateTime',context!); slipId = json['slipId']; betId = json['betId']; code = json['code']; amount = JsonConverters.toDouble(json['amount']); origin = JsonConverters.fromJson(json['origin'],'Origin',context!); bettor = JsonConverters.fromJson(json['bettor'],'Ref',context!); locationAddressOrBettorInfo = json['locationAddressOrBettorInfo']; return this; } Map toJson() => { 'roundId': roundId, 'drawnAtUtc': JsonConverters.toJson(drawnAtUtc,'DateTime',context!), 'slipId': slipId, 'betId': betId, 'code': code, 'amount': amount, 'origin': JsonConverters.toJson(origin,'Origin',context!), 'bettor': JsonConverters.toJson(bettor,'Ref',context!), 'locationAddressOrBettorInfo': locationAddressOrBettorInfo }; getTypeName() => "WinnerByCode"; TypeContext? context = _ctx; } class LCPAccumulation implements IConvertible { String? locId; String? locName; double? amount; double? threshold; LCPConfiguration? cfg; List? winners; LCPAccumulation({this.locId,this.locName,this.amount,this.threshold,this.cfg,this.winners}); LCPAccumulation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { locId = json['locId']; locName = json['locName']; amount = JsonConverters.toDouble(json['amount']); threshold = JsonConverters.toDouble(json['threshold']); cfg = JsonConverters.fromJson(json['cfg'],'LCPConfiguration',context!); winners = JsonConverters.fromJson(json['winners'],'List',context!); return this; } Map toJson() => { 'locId': locId, 'locName': locName, 'amount': amount, 'threshold': threshold, 'cfg': JsonConverters.toJson(cfg,'LCPConfiguration',context!), 'winners': JsonConverters.toJson(winners,'List',context!) }; getTypeName() => "LCPAccumulation"; TypeContext? context = _ctx; } class RecordDictionary extends Map implements IConvertible { RecordDictionary(); RecordDictionary.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "RecordDictionary<$TKey,$TVal>"; TypeContext? context = _ctx; } class LocalCodePotAccumulations implements IConvertible { String? id; Map? accumulations; String? currentRoundId; String? inertCode; LocalCodePotAccumulations({this.id,this.accumulations,this.currentRoundId,this.inertCode}); LocalCodePotAccumulations.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; accumulations = JsonConverters.fromJson(json['accumulations'],'Map',context!); currentRoundId = json['currentRoundId']; inertCode = json['inertCode']; return this; } Map toJson() => { 'id': id, 'accumulations': JsonConverters.toJson(accumulations,'Map',context!), 'currentRoundId': currentRoundId, 'inertCode': inertCode }; getTypeName() => "LocalCodePotAccumulations"; TypeContext? context = _ctx; } // @Route("/qry/lcp/accumulations") class GetLocalCodePotAccumulations implements IReturn, IConvertible, IPost { GetLocalCodePotAccumulations(); GetLocalCodePotAccumulations.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => LocalCodePotAccumulations(); getResponseTypeName() => "LocalCodePotAccumulations"; getTypeName() => "GetLocalCodePotAccumulations"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'BettingApp': TypeInfo(TypeOf.Class, create:() => BettingApp()), 'RefEx': TypeInfo(TypeOf.Class, create:() => RefEx()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'Origin': TypeInfo(TypeOf.Class, create:() => Origin()), 'ThresholdInterval': TypeInfo(TypeOf.Class, create:() => ThresholdInterval()), 'LCPConfiguration': TypeInfo(TypeOf.Class, create:() => LCPConfiguration()), 'WinnerByCode': TypeInfo(TypeOf.Class, create:() => WinnerByCode()), 'LCPAccumulation': TypeInfo(TypeOf.Class, create:() => LCPAccumulation()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'LocalCodePotAccumulations': TypeInfo(TypeOf.Class, create:() => LocalCodePotAccumulations()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetLocalCodePotAccumulations': TypeInfo(TypeOf.Class, create:() => GetLocalCodePotAccumulations()), });