/* Options: Date: 2025-11-09 11:14:23 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: GetDraw.* //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 Pool implements IConvertible { int? id; String? name; double? coefficient; double? rtp; double? threshold; double? balance; double? rrtp; double? rBalance; Pool({this.id,this.name,this.coefficient,this.rtp,this.threshold,this.balance,this.rrtp,this.rBalance}); Pool.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; coefficient = JsonConverters.toDouble(json['coefficient']); rtp = JsonConverters.toDouble(json['rtp']); threshold = JsonConverters.toDouble(json['threshold']); balance = JsonConverters.toDouble(json['balance']); rrtp = JsonConverters.toDouble(json['rrtp']); rBalance = JsonConverters.toDouble(json['rBalance']); return this; } Map toJson() => { 'id': id, 'name': name, 'coefficient': coefficient, 'rtp': rtp, 'threshold': threshold, 'balance': balance, 'rrtp': rrtp, 'rBalance': rBalance }; getTypeName() => "Pool"; TypeContext? context = _ctx; } class Pool implements IConvertible { int? id; String? name; double? rtp; double? reserveRTP; double? totalRTP; Pool({this.id,this.name,this.rtp,this.reserveRTP,this.totalRTP}); Pool.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; rtp = JsonConverters.toDouble(json['rtp']); reserveRTP = JsonConverters.toDouble(json['reserveRTP']); totalRTP = JsonConverters.toDouble(json['totalRTP']); return this; } Map toJson() => { 'id': id, 'name': name, 'rtp': rtp, 'reserveRTP': reserveRTP, 'totalRTP': totalRTP }; getTypeName() => "Pool"; TypeContext? context = _ctx; } class Pool implements IConvertible { int? id; String? name; double? treshold; Pool({this.id,this.name,this.treshold}); Pool.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; treshold = JsonConverters.toDouble(json['treshold']); return this; } Map toJson() => { 'id': id, 'name': name, 'treshold': treshold }; getTypeName() => "Pool"; TypeContext? context = _ctx; } class JackPot5Winner implements IConvertible { String? betId; int? nrOfCombinations; double? winningsAmount; Origin? origin; Ref? bettor; Map? payload; JackPot5Winner({this.betId,this.nrOfCombinations,this.winningsAmount,this.origin,this.bettor,this.payload}); JackPot5Winner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { betId = json['betId']; nrOfCombinations = json['nrOfCombinations']; winningsAmount = JsonConverters.toDouble(json['winningsAmount']); origin = JsonConverters.fromJson(json['origin'],'Origin',context!); bettor = JsonConverters.fromJson(json['bettor'],'Ref',context!); payload = JsonConverters.toStringMap(json['payload']); return this; } Map toJson() => { 'betId': betId, 'nrOfCombinations': nrOfCombinations, 'winningsAmount': winningsAmount, 'origin': JsonConverters.toJson(origin,'Origin',context!), 'bettor': JsonConverters.toJson(bettor,'Ref',context!), 'payload': payload }; getTypeName() => "JackPot5Winner"; TypeContext? context = _ctx; } class Jackpot5Info implements IConvertible { bool? isHit; double? amountAccumulated; double? amountAwarded; int? nrOfWinners; List? jackPot5Winners; Jackpot5Info({this.isHit,this.amountAccumulated,this.amountAwarded,this.nrOfWinners,this.jackPot5Winners}); Jackpot5Info.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isHit = json['isHit']; amountAccumulated = JsonConverters.toDouble(json['amountAccumulated']); amountAwarded = JsonConverters.toDouble(json['amountAwarded']); nrOfWinners = json['nrOfWinners']; jackPot5Winners = JsonConverters.fromJson(json['jackPot5Winners'],'List',context!); return this; } Map toJson() => { 'isHit': isHit, 'amountAccumulated': amountAccumulated, 'amountAwarded': amountAwarded, 'nrOfWinners': nrOfWinners, 'jackPot5Winners': JsonConverters.toJson(jackPot5Winners,'List',context!) }; getTypeName() => "Jackpot5Info"; TypeContext? context = _ctx; } class SuperWinInfo implements IConvertible { bool? isActive; SuperWinWinner? winner; double? availableAmount; bool? allPrizesAwarded; SuperWinInfo({this.isActive,this.winner,this.availableAmount,this.allPrizesAwarded}); SuperWinInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isActive = json['isActive']; winner = JsonConverters.fromJson(json['winner'],'SuperWinWinner',context!); availableAmount = JsonConverters.toDouble(json['availableAmount']); allPrizesAwarded = json['allPrizesAwarded']; return this; } Map toJson() => { 'isActive': isActive, 'winner': JsonConverters.toJson(winner,'SuperWinWinner',context!), 'availableAmount': availableAmount, 'allPrizesAwarded': allPrizesAwarded }; getTypeName() => "SuperWinInfo"; 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 GlobalCodePotInfo implements IConvertible { bool? isActive; bool? isDrawn; WinnerByCode? winner; String? inertCode; double? accumulation; GlobalCodePotInfo({this.isActive,this.isDrawn,this.winner,this.inertCode,this.accumulation}); GlobalCodePotInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isActive = json['isActive']; isDrawn = json['isDrawn']; winner = JsonConverters.fromJson(json['winner'],'WinnerByCode',context!); inertCode = json['inertCode']; accumulation = JsonConverters.toDouble(json['accumulation']); return this; } Map toJson() => { 'isActive': isActive, 'isDrawn': isDrawn, 'winner': JsonConverters.toJson(winner,'WinnerByCode',context!), 'inertCode': inertCode, 'accumulation': accumulation }; getTypeName() => "GlobalCodePotInfo"; TypeContext? context = _ctx; } class SuperWinInfo implements IConvertible { int? durationInMs; SuperWinInfo({this.durationInMs}); SuperWinInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { durationInMs = json['durationInMs']; return this; } Map toJson() => { 'durationInMs': durationInMs }; getTypeName() => "SuperWinInfo"; TypeContext? context = _ctx; } class DrawItem implements IConvertible { int? ordinal; int? number; double? coefficient; bool? isDoubleTriple; bool? constitutesJackpot; int? hits; double? win; DrawItem({this.ordinal,this.number,this.coefficient,this.isDoubleTriple,this.constitutesJackpot,this.hits,this.win}); DrawItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ordinal = json['ordinal']; number = json['number']; coefficient = JsonConverters.toDouble(json['coefficient']); isDoubleTriple = json['isDoubleTriple']; constitutesJackpot = json['constitutesJackpot']; hits = json['hits']; win = JsonConverters.toDouble(json['win']); return this; } Map toJson() => { 'ordinal': ordinal, 'number': number, 'coefficient': coefficient, 'isDoubleTriple': isDoubleTriple, 'constitutesJackpot': constitutesJackpot, 'hits': hits, 'win': win }; getTypeName() => "DrawItem"; TypeContext? context = _ctx; } class CustomBetType { static const CustomBetType FirstNumberOdd = const CustomBetType._(4); static const CustomBetType FirstNumberEven = const CustomBetType._(5); static const CustomBetType FirstNumberLessThan24_5 = const CustomBetType._(6); static const CustomBetType FirstNumberGreaterThan24_5 = const CustomBetType._(7); static const CustomBetType SumOfFirstFiveLessThan122_5 = const CustomBetType._(8); static const CustomBetType SumOfFirstFiveGreaterThan122_5 = const CustomBetType._(9); static const CustomBetType FirstColor1 = const CustomBetType._(10); static const CustomBetType FirstColor2 = const CustomBetType._(11); static const CustomBetType FirstColor3 = const CustomBetType._(12); static const CustomBetType FirstColor4 = const CustomBetType._(13); static const CustomBetType FirstColor5 = const CustomBetType._(14); static const CustomBetType FirstColor6 = const CustomBetType._(15); static const CustomBetType FirstColor7 = const CustomBetType._(16); static const CustomBetType FirstColor8 = const CustomBetType._(17); static const CustomBetType MoreOddNumbers = const CustomBetType._(18); static const CustomBetType MoreEvenNumbers = const CustomBetType._(19); final int _value; const CustomBetType._(this._value); int get value => _value; static List get values => const [FirstNumberOdd,FirstNumberEven,FirstNumberLessThan24_5,FirstNumberGreaterThan24_5,SumOfFirstFiveLessThan122_5,SumOfFirstFiveGreaterThan122_5,FirstColor1,FirstColor2,FirstColor3,FirstColor4,FirstColor5,FirstColor6,FirstColor7,FirstColor8,MoreOddNumbers,MoreEvenNumbers]; } class CustomBetOutcome implements IConvertible { CustomBetType? type; double? coef; int? winCount; double? win; bool? isWin; String? results; CustomBetOutcome({this.type,this.coef,this.winCount,this.win,this.isWin,this.results}); CustomBetOutcome.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = JsonConverters.fromJson(json['type'],'CustomBetType',context!); coef = JsonConverters.toDouble(json['coef']); winCount = json['winCount']; win = JsonConverters.toDouble(json['win']); isWin = json['isWin']; results = json['results']; return this; } Map toJson() => { 'type': JsonConverters.toJson(type,'CustomBetType',context!), 'coef': coef, 'winCount': winCount, 'win': win, 'isWin': isWin, 'results': results }; getTypeName() => "CustomBetOutcome"; TypeContext? context = _ctx; } class RoundOutcome implements IConvertible { List? draw; List? customBetOutcomes; List? lcpWinners; SuperWinInfo? superWinInfo; Jackpot5Info? jackpot5Info; GlobalCodePotInfo? globalCodePotInfo; double? stake; int? betCount; double? winnings; double? balance; double? returnToPlayer; int? winCount; int? slipWinCount; double? winCountPct; int? slipCount; int? unitBetCount; RoundOutcome({this.draw,this.customBetOutcomes,this.lcpWinners,this.superWinInfo,this.jackpot5Info,this.globalCodePotInfo,this.stake,this.betCount,this.winnings,this.balance,this.returnToPlayer,this.winCount,this.slipWinCount,this.winCountPct,this.slipCount,this.unitBetCount}); RoundOutcome.fromJson(Map json) { fromMap(json); } fromMap(Map json) { draw = JsonConverters.fromJson(json['draw'],'List',context!); customBetOutcomes = JsonConverters.fromJson(json['customBetOutcomes'],'List',context!); lcpWinners = JsonConverters.fromJson(json['lcpWinners'],'List',context!); superWinInfo = JsonConverters.fromJson(json['superWinInfo'],'SuperWinInfo',context!); jackpot5Info = JsonConverters.fromJson(json['jackpot5Info'],'Jackpot5Info',context!); globalCodePotInfo = JsonConverters.fromJson(json['globalCodePotInfo'],'GlobalCodePotInfo',context!); stake = JsonConverters.toDouble(json['stake']); betCount = json['betCount']; winnings = JsonConverters.toDouble(json['winnings']); balance = JsonConverters.toDouble(json['balance']); returnToPlayer = JsonConverters.toDouble(json['returnToPlayer']); winCount = json['winCount']; slipWinCount = json['slipWinCount']; winCountPct = JsonConverters.toDouble(json['winCountPct']); slipCount = json['slipCount']; unitBetCount = json['unitBetCount']; return this; } Map toJson() => { 'draw': JsonConverters.toJson(draw,'List',context!), 'customBetOutcomes': JsonConverters.toJson(customBetOutcomes,'List',context!), 'lcpWinners': JsonConverters.toJson(lcpWinners,'List',context!), 'superWinInfo': JsonConverters.toJson(superWinInfo,'SuperWinInfo',context!), 'jackpot5Info': JsonConverters.toJson(jackpot5Info,'Jackpot5Info',context!), 'globalCodePotInfo': JsonConverters.toJson(globalCodePotInfo,'GlobalCodePotInfo',context!), 'stake': stake, 'betCount': betCount, 'winnings': winnings, 'balance': balance, 'returnToPlayer': returnToPlayer, 'winCount': winCount, 'slipWinCount': slipWinCount, 'winCountPct': winCountPct, 'slipCount': slipCount, 'unitBetCount': unitBetCount }; getTypeName() => "RoundOutcome"; 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 Draw implements IConvertible { String? id; String? sequence; List? inputAccumulation; List? outputAccumulation; RoundOutcome? outcome; Draw({this.id,this.sequence,this.inputAccumulation,this.outputAccumulation,this.outcome}); Draw.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; sequence = json['sequence']; inputAccumulation = JsonConverters.fromJson(json['inputAccumulation'],'List',context!); outputAccumulation = JsonConverters.fromJson(json['outputAccumulation'],'List',context!); outcome = JsonConverters.fromJson(json['outcome'],'RoundOutcome',context!); return this; } Map toJson() => { 'id': id, 'sequence': sequence, 'inputAccumulation': JsonConverters.toJson(inputAccumulation,'List',context!), 'outputAccumulation': JsonConverters.toJson(outputAccumulation,'List',context!), 'outcome': JsonConverters.toJson(outcome,'RoundOutcome',context!) }; getTypeName() => "Draw"; TypeContext? context = _ctx; } // @Route("/qry/rounds/draw") class GetDraw implements IReturn, IConvertible, IPost { String? id; GetDraw({this.id}); GetDraw.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => Draw(); getResponseTypeName() => "Draw"; getTypeName() => "GetDraw"; 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()), 'Pool': TypeInfo(TypeOf.Class, create:() => Pool()), 'JackPot5Winner': TypeInfo(TypeOf.Class, create:() => JackPot5Winner()), 'Jackpot5Info': TypeInfo(TypeOf.Class, create:() => Jackpot5Info()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SuperWinInfo': TypeInfo(TypeOf.Class, create:() => SuperWinInfo()), 'SuperWinWinner': TypeInfo(TypeOf.Class, create:() => SuperWinWinner()), 'WinnerByCode': TypeInfo(TypeOf.Class, create:() => WinnerByCode()), 'GlobalCodePotInfo': TypeInfo(TypeOf.Class, create:() => GlobalCodePotInfo()), 'DrawItem': TypeInfo(TypeOf.Class, create:() => DrawItem()), 'CustomBetType': TypeInfo(TypeOf.Enum, enumValues:CustomBetType.values), 'CustomBetOutcome': TypeInfo(TypeOf.Class, create:() => CustomBetOutcome()), 'RoundOutcome': TypeInfo(TypeOf.Class, create:() => RoundOutcome()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'Draw': TypeInfo(TypeOf.Class, create:() => Draw()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetDraw': TypeInfo(TypeOf.Class, create:() => GetDraw()), });