/* 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: GetLocationFeed.* //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 CurrentRoundInfo implements IConvertible { String? roundId; double? amount; String? inertCode; CurrentRoundInfo({this.roundId,this.amount,this.inertCode}); CurrentRoundInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { roundId = json['roundId']; amount = JsonConverters.toDouble(json['amount']); inertCode = json['inertCode']; return this; } Map toJson() => { 'roundId': roundId, 'amount': amount, 'inertCode': inertCode }; getTypeName() => "CurrentRoundInfo"; 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 LocalCodePotInfo implements IConvertible { bool? isActive; CurrentRoundInfo? current; List? winners; LocalCodePotInfo({this.isActive,this.current,this.winners}); LocalCodePotInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isActive = json['isActive']; current = JsonConverters.fromJson(json['current'],'CurrentRoundInfo',context!); winners = JsonConverters.fromJson(json['winners'],'List',context!); return this; } Map toJson() => { 'isActive': isActive, 'current': JsonConverters.toJson(current,'CurrentRoundInfo',context!), 'winners': JsonConverters.toJson(winners,'List',context!) }; getTypeName() => "LocalCodePotInfo"; 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 LocationFeed implements IConvertible { bool? exists; String? id; LocalCodePotInfo? lcpInfo; LocationFeed({this.exists,this.id,this.lcpInfo}); LocationFeed.fromJson(Map json) { fromMap(json); } fromMap(Map json) { exists = json['exists']; id = json['id']; lcpInfo = JsonConverters.fromJson(json['lcpInfo'],'LocalCodePotInfo',context!); return this; } Map toJson() => { 'exists': exists, 'id': id, 'lcpInfo': JsonConverters.toJson(lcpInfo,'LocalCodePotInfo',context!) }; getTypeName() => "LocationFeed"; TypeContext? context = _ctx; } // @Route("/qry/feed/locations") class GetLocationFeed implements IReturn, IConvertible, IPost { String? id; GetLocationFeed({this.id}); GetLocationFeed.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => LocationFeed(); getResponseTypeName() => "LocationFeed"; getTypeName() => "GetLocationFeed"; 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()), 'CurrentRoundInfo': TypeInfo(TypeOf.Class, create:() => CurrentRoundInfo()), 'WinnerByCode': TypeInfo(TypeOf.Class, create:() => WinnerByCode()), 'LocalCodePotInfo': TypeInfo(TypeOf.Class, create:() => LocalCodePotInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'LocationFeed': TypeInfo(TypeOf.Class, create:() => LocationFeed()), 'GetLocationFeed': TypeInfo(TypeOf.Class, create:() => GetLocationFeed()), });