/* Options: Date: 2025-11-08 11:04:17 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: GetRecentJackpotWinners.* //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 RecentJackpot5Winner implements IConvertible { String? slipId; String? betId; double? winningsAmount; Origin? origin; DateTime? placedAt; Map? payload; String? results; Ref? bettor; String? roundId; RecentJackpot5Winner({this.slipId,this.betId,this.winningsAmount,this.origin,this.placedAt,this.payload,this.results,this.bettor,this.roundId}); RecentJackpot5Winner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slipId = json['slipId']; betId = json['betId']; winningsAmount = JsonConverters.toDouble(json['winningsAmount']); origin = JsonConverters.fromJson(json['origin'],'Origin',context!); placedAt = JsonConverters.fromJson(json['placedAt'],'DateTime',context!); payload = JsonConverters.toStringMap(json['payload']); results = json['results']; bettor = JsonConverters.fromJson(json['bettor'],'Ref',context!); roundId = json['roundId']; return this; } Map toJson() => { 'slipId': slipId, 'betId': betId, 'winningsAmount': winningsAmount, 'origin': JsonConverters.toJson(origin,'Origin',context!), 'placedAt': JsonConverters.toJson(placedAt,'DateTime',context!), 'payload': payload, 'results': results, 'bettor': JsonConverters.toJson(bettor,'Ref',context!), 'roundId': roundId }; getTypeName() => "RecentJackpot5Winner"; 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 RecentJackpot5Winners implements IConvertible { String? id; List? recentWinners; RecentJackpot5Winners({this.id,this.recentWinners}); RecentJackpot5Winners.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; recentWinners = JsonConverters.fromJson(json['recentWinners'],'List',context!); return this; } Map toJson() => { 'id': id, 'recentWinners': JsonConverters.toJson(recentWinners,'List',context!) }; getTypeName() => "RecentJackpot5Winners"; TypeContext? context = _ctx; } // @Route("/qry/recentJackpotWinners", "GET") class GetRecentJackpotWinners implements IReturn, IConvertible, IGet { GetRecentJackpotWinners(); GetRecentJackpotWinners.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => RecentJackpot5Winners(); getResponseTypeName() => "RecentJackpot5Winners"; getTypeName() => "GetRecentJackpotWinners"; 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()), 'RecentJackpot5Winner': TypeInfo(TypeOf.Class, create:() => RecentJackpot5Winner()), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'RecentJackpot5Winners': TypeInfo(TypeOf.Class, create:() => RecentJackpot5Winners()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetRecentJackpotWinners': TypeInfo(TypeOf.Class, create:() => GetRecentJackpotWinners()), });