/* Options: Date: 2025-11-09 11:18:11 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: GetRoundIntegrity.* //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 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 CheckStatus { static const CheckStatus Ok = const CheckStatus._(1); static const CheckStatus Error = const CheckStatus._(2); final int _value; const CheckStatus._(this._value); int get value => _value; static List get values => const [Ok,Error]; } 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 RoundIntegrityCheckResult implements IConvertible { CheckStatus? status; double? extraWinnings; int? betCount; Jackpot5Info? jpInfo; RoundIntegrityCheckResult({this.status,this.extraWinnings,this.betCount,this.jpInfo}); RoundIntegrityCheckResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { status = JsonConverters.fromJson(json['status'],'CheckStatus',context!); extraWinnings = JsonConverters.toDouble(json['extraWinnings']); betCount = json['betCount']; jpInfo = JsonConverters.fromJson(json['jpInfo'],'Jackpot5Info',context!); return this; } Map toJson() => { 'status': JsonConverters.toJson(status,'CheckStatus',context!), 'extraWinnings': extraWinnings, 'betCount': betCount, 'jpInfo': JsonConverters.toJson(jpInfo,'Jackpot5Info',context!) }; getTypeName() => "RoundIntegrityCheckResult"; TypeContext? context = _ctx; } // @Route("/qry/rounds/integrity") class GetRoundIntegrity implements IReturn, IConvertible, IPost { String? roundId; GetRoundIntegrity({this.roundId}); GetRoundIntegrity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { roundId = json['roundId']; return this; } Map toJson() => { 'roundId': roundId }; createResponse() => RoundIntegrityCheckResult(); getResponseTypeName() => "RoundIntegrityCheckResult"; getTypeName() => "GetRoundIntegrity"; 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()), 'JackPot5Winner': TypeInfo(TypeOf.Class, create:() => JackPot5Winner()), 'Jackpot5Info': TypeInfo(TypeOf.Class, create:() => Jackpot5Info()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CheckStatus': TypeInfo(TypeOf.Enum, enumValues:CheckStatus.values), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'RoundIntegrityCheckResult': TypeInfo(TypeOf.Class, create:() => RoundIntegrityCheckResult()), 'GetRoundIntegrity': TypeInfo(TypeOf.Class, create:() => GetRoundIntegrity()), });