/* Options: Date: 2025-12-06 05:25:55 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sbbet.ath.cx //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SubmitSlip.* //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 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 ProductReference implements IConvertible { String? id; String? value; String? category; Ref? productProvider; ProductReference({this.id,this.value,this.category,this.productProvider}); ProductReference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; value = json['value']; category = json['category']; productProvider = JsonConverters.fromJson(json['productProvider'],'Ref',context!); return this; } Map toJson() => { 'id': id, 'value': value, 'category': category, 'productProvider': JsonConverters.toJson(productProvider,'Ref',context!) }; getTypeName() => "ProductReference"; TypeContext? context = _ctx; } class ProductInstanceRef implements IConvertible { String? id; String? name; String? title; ProductReference? product; ProductInstanceRef({this.id,this.name,this.title,this.product}); ProductInstanceRef.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; title = json['title']; product = JsonConverters.fromJson(json['product'],'ProductReference',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'title': title, 'product': JsonConverters.toJson(product,'ProductReference',context!) }; getTypeName() => "ProductInstanceRef"; 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 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 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 PayinRecap implements IConvertible { String? currency; double? payin; Ref? payinTaxationPolicyRef; double? taxAmount; double? stake; PayinRecap({this.currency,this.payin,this.payinTaxationPolicyRef,this.taxAmount,this.stake}); PayinRecap.fromJson(Map json) { fromMap(json); } fromMap(Map json) { currency = json['currency']; payin = JsonConverters.toDouble(json['payin']); payinTaxationPolicyRef = JsonConverters.fromJson(json['payinTaxationPolicyRef'],'Ref',context!); taxAmount = JsonConverters.toDouble(json['taxAmount']); stake = JsonConverters.toDouble(json['stake']); return this; } Map toJson() => { 'currency': currency, 'payin': payin, 'payinTaxationPolicyRef': JsonConverters.toJson(payinTaxationPolicyRef,'Ref',context!), 'taxAmount': taxAmount, 'stake': stake }; getTypeName() => "PayinRecap"; TypeContext? context = _ctx; } class PayoutRecap implements IConvertible { String? currency; double? winnings; Ref? winningsTaxationPolicyRef; double? taxAmount; double? payout; PayoutRecap({this.currency,this.winnings,this.winningsTaxationPolicyRef,this.taxAmount,this.payout}); PayoutRecap.fromJson(Map json) { fromMap(json); } fromMap(Map json) { currency = json['currency']; winnings = JsonConverters.toDouble(json['winnings']); winningsTaxationPolicyRef = JsonConverters.fromJson(json['winningsTaxationPolicyRef'],'Ref',context!); taxAmount = JsonConverters.toDouble(json['taxAmount']); payout = JsonConverters.toDouble(json['payout']); return this; } Map toJson() => { 'currency': currency, 'winnings': winnings, 'winningsTaxationPolicyRef': JsonConverters.toJson(winningsTaxationPolicyRef,'Ref',context!), 'taxAmount': taxAmount, 'payout': payout }; getTypeName() => "PayoutRecap"; TypeContext? context = _ctx; } class BetRequest implements IConvertible { String? betId; ProductInstanceRef? productInstance; Map? payload; PayinRecap? payinRecap; PayoutRecap? possiblePayoutRecap; BetRequest({this.betId,this.productInstance,this.payload,this.payinRecap,this.possiblePayoutRecap}); BetRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { betId = json['betId']; productInstance = JsonConverters.fromJson(json['productInstance'],'ProductInstanceRef',context!); payload = JsonConverters.toStringMap(json['payload']); payinRecap = JsonConverters.fromJson(json['payinRecap'],'PayinRecap',context!); possiblePayoutRecap = JsonConverters.fromJson(json['possiblePayoutRecap'],'PayoutRecap',context!); return this; } Map toJson() => { 'betId': betId, 'productInstance': JsonConverters.toJson(productInstance,'ProductInstanceRef',context!), 'payload': payload, 'payinRecap': JsonConverters.toJson(payinRecap,'PayinRecap',context!), 'possiblePayoutRecap': JsonConverters.toJson(possiblePayoutRecap,'PayoutRecap',context!) }; getTypeName() => "BetRequest"; TypeContext? context = _ctx; } // @Route("/cmd/slips", "POST") class SubmitSlip implements IReturn, IConvertible, IPost { String? id; Ref? bettor; Origin? origin; List? betRequests; Map? headerData; SubmitSlip({this.id,this.bettor,this.origin,this.betRequests,this.headerData}); SubmitSlip.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; bettor = JsonConverters.fromJson(json['bettor'],'Ref',context!); origin = JsonConverters.fromJson(json['origin'],'Origin',context!); betRequests = JsonConverters.fromJson(json['betRequests'],'List',context!); headerData = JsonConverters.toStringMap(json['headerData']); return this; } Map toJson() => { 'id': id, 'bettor': JsonConverters.toJson(bettor,'Ref',context!), 'origin': JsonConverters.toJson(origin,'Origin',context!), 'betRequests': JsonConverters.toJson(betRequests,'List',context!), 'headerData': headerData }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "SubmitSlip"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'RefEx': TypeInfo(TypeOf.Class, create:() => RefEx()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'ProductReference': TypeInfo(TypeOf.Class, create:() => ProductReference()), 'ProductInstanceRef': TypeInfo(TypeOf.Class, create:() => ProductInstanceRef()), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'BettingApp': TypeInfo(TypeOf.Class, create:() => BettingApp()), 'Origin': TypeInfo(TypeOf.Class, create:() => Origin()), 'PayinRecap': TypeInfo(TypeOf.Class, create:() => PayinRecap()), 'PayoutRecap': TypeInfo(TypeOf.Class, create:() => PayoutRecap()), 'BetRequest': TypeInfo(TypeOf.Class, create:() => BetRequest()), 'SubmitSlip': TypeInfo(TypeOf.Class, create:() => SubmitSlip()), 'List': TypeInfo(TypeOf.Class, create:() => []), });