/* Options: Date: 2025-11-08 11:12:53 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: GetSuperWinAccumulations.* //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 RecordList extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; T operator [](int index) => l[index]; void operator []=(int index, T value) { l[index] = value; } RecordList(); RecordList.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "RecordList<$T>"; TypeContext? context = _ctx; } class SuperWinPoolState { static const SuperWinPoolState Idle = const SuperWinPoolState._(0); static const SuperWinPoolState Accumulating = const SuperWinPoolState._(1); static const SuperWinPoolState Awarding = const SuperWinPoolState._(2); final int _value; const SuperWinPoolState._(this._value); int get value => _value; static List get values => const [Idle,Accumulating,Awarding]; } class SuperWinWinner implements IConvertible { bool? isDrawn; DateTime? drawnAtUtc; String? roundId; String? betId; String? slipId; Origin? origin; Ref? bettor; String? code; double? amount; String? locationAddressOrBettorInfo; SuperWinWinner({this.isDrawn,this.drawnAtUtc,this.roundId,this.betId,this.slipId,this.origin,this.bettor,this.code,this.amount,this.locationAddressOrBettorInfo}); SuperWinWinner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isDrawn = json['isDrawn']; drawnAtUtc = JsonConverters.fromJson(json['drawnAtUtc'],'DateTime',context!); roundId = json['roundId']; betId = json['betId']; slipId = json['slipId']; origin = JsonConverters.fromJson(json['origin'],'Origin',context!); bettor = JsonConverters.fromJson(json['bettor'],'Ref',context!); code = json['code']; amount = JsonConverters.toDouble(json['amount']); locationAddressOrBettorInfo = json['locationAddressOrBettorInfo']; return this; } Map toJson() => { 'isDrawn': isDrawn, 'drawnAtUtc': JsonConverters.toJson(drawnAtUtc,'DateTime',context!), 'roundId': roundId, 'betId': betId, 'slipId': slipId, 'origin': JsonConverters.toJson(origin,'Origin',context!), 'bettor': JsonConverters.toJson(bettor,'Ref',context!), 'code': code, 'amount': amount, 'locationAddressOrBettorInfo': locationAddressOrBettorInfo }; getTypeName() => "SuperWinWinner"; TypeContext? context = _ctx; } class SuperWinPrize implements IConvertible { int? id; double? amount; DateTime? scheduledAt; SuperWinWinner? winner; SuperWinPrize({this.id,this.amount,this.scheduledAt,this.winner}); SuperWinPrize.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; amount = JsonConverters.toDouble(json['amount']); scheduledAt = JsonConverters.fromJson(json['scheduledAt'],'DateTime',context!); winner = JsonConverters.fromJson(json['winner'],'SuperWinWinner',context!); return this; } Map toJson() => { 'id': id, 'amount': amount, 'scheduledAt': JsonConverters.toJson(scheduledAt,'DateTime',context!), 'winner': JsonConverters.toJson(winner,'SuperWinWinner',context!) }; getTypeName() => "SuperWinPrize"; TypeContext? context = _ctx; } class SuperWinPool implements IConvertible { int? id; SuperWinPoolState? state; double? amount; RecordList? schedule; SuperWinPool({this.id,this.state,this.amount,this.schedule}); SuperWinPool.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; state = JsonConverters.fromJson(json['state'],'SuperWinPoolState',context!); amount = JsonConverters.toDouble(json['amount']); schedule = JsonConverters.fromJson(json['schedule'],'RecordList',context!); return this; } Map toJson() => { 'id': id, 'state': JsonConverters.toJson(state,'SuperWinPoolState',context!), 'amount': amount, 'schedule': JsonConverters.toJson(schedule,'RecordList',context!) }; getTypeName() => "SuperWinPool"; TypeContext? context = _ctx; } class SuperWinState implements IConvertible { String? currentDate; double? availableAmount; RecordDictionary? pools; SuperWinState({this.currentDate,this.availableAmount,this.pools}); SuperWinState.fromJson(Map json) { fromMap(json); } fromMap(Map json) { currentDate = json['currentDate']; availableAmount = JsonConverters.toDouble(json['availableAmount']); pools = JsonConverters.fromJson(json['pools'],'RecordDictionary',context!); return this; } Map toJson() => { 'currentDate': currentDate, 'availableAmount': availableAmount, 'pools': JsonConverters.toJson(pools,'RecordDictionary',context!) }; getTypeName() => "SuperWinState"; 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 SuperWinStateDoc implements IConvertible { String? id; SuperWinState? state; SuperWinStateDoc({this.id,this.state}); SuperWinStateDoc.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; state = JsonConverters.fromJson(json['state'],'SuperWinState',context!); return this; } Map toJson() => { 'id': id, 'state': JsonConverters.toJson(state,'SuperWinState',context!) }; getTypeName() => "SuperWinStateDoc"; TypeContext? context = _ctx; } // @Route("/qry/super-win/accumulations") class GetSuperWinAccumulations implements IReturn, IConvertible, IPost { GetSuperWinAccumulations(); GetSuperWinAccumulations.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => SuperWinStateDoc(); getResponseTypeName() => "SuperWinStateDoc"; getTypeName() => "GetSuperWinAccumulations"; 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()), 'RecordList': TypeInfo(TypeOf.GenericDef,create:() => RecordList()), 'SuperWinPoolState': TypeInfo(TypeOf.Enum, enumValues:SuperWinPoolState.values), 'SuperWinWinner': TypeInfo(TypeOf.Class, create:() => SuperWinWinner()), 'SuperWinPrize': TypeInfo(TypeOf.Class, create:() => SuperWinPrize()), 'SuperWinPool': TypeInfo(TypeOf.Class, create:() => SuperWinPool()), 'RecordList': TypeInfo(TypeOf.Class, create:() => RecordList()), 'SuperWinState': TypeInfo(TypeOf.Class, create:() => SuperWinState()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'SuperWinStateDoc': TypeInfo(TypeOf.Class, create:() => SuperWinStateDoc()), 'GetSuperWinAccumulations': TypeInfo(TypeOf.Class, create:() => GetSuperWinAccumulations()), });