/* Options: Date: 2025-12-06 06:09:07 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: GetProductInstanceConfiguration.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Money implements IConvertible { double? amount; String? currency; Money({this.amount,this.currency}); Money.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amount = JsonConverters.toDouble(json['amount']); currency = json['currency']; return this; } Map toJson() => { 'amount': amount, 'currency': currency }; getTypeName() => "Money"; TypeContext? context = _ctx; } class PayinConstraintType { static const PayinConstraintType SingleBet = const PayinConstraintType._(0); static const PayinConstraintType MultiBet = const PayinConstraintType._(1); static const PayinConstraintType SystemBet = const PayinConstraintType._(2); final int _value; const PayinConstraintType._(this._value); int get value => _value; static List get values => const [SingleBet,MultiBet,SystemBet]; } class PayinConstraint implements IConvertible { PayinConstraintType? type; Money? min; Money? Default; Money? warningThreshold; Money? max; PayinConstraint({this.type,this.min,this.Default,this.warningThreshold,this.max}); PayinConstraint.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = JsonConverters.fromJson(json['type'],'PayinConstraintType',context!); min = JsonConverters.fromJson(json['min'],'Money',context!); Default = JsonConverters.fromJson(json['default'],'Money',context!); warningThreshold = JsonConverters.fromJson(json['warningThreshold'],'Money',context!); max = JsonConverters.fromJson(json['max'],'Money',context!); return this; } Map toJson() => { 'type': JsonConverters.toJson(type,'PayinConstraintType',context!), 'min': JsonConverters.toJson(min,'Money',context!), 'default': JsonConverters.toJson(Default,'Money',context!), 'warningThreshold': JsonConverters.toJson(warningThreshold,'Money',context!), 'max': JsonConverters.toJson(max,'Money',context!) }; getTypeName() => "PayinConstraint"; TypeContext? context = _ctx; } class WinningsCapType { static const WinningsCapType SingleBet = const WinningsCapType._(0); static const WinningsCapType MultiBet = const WinningsCapType._(1); static const WinningsCapType SystemBet = const WinningsCapType._(2); final int _value; const WinningsCapType._(this._value); int get value => _value; static List get values => const [SingleBet,MultiBet,SystemBet]; } class WinningsCap implements IConvertible { WinningsCapType? type; Money? cap; WinningsCap({this.type,this.cap}); WinningsCap.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = JsonConverters.fromJson(json['type'],'WinningsCapType',context!); cap = JsonConverters.fromJson(json['cap'],'Money',context!); return this; } Map toJson() => { 'type': JsonConverters.toJson(type,'WinningsCapType',context!), 'cap': JsonConverters.toJson(cap,'Money',context!) }; getTypeName() => "WinningsCap"; TypeContext? context = _ctx; } class BettingPolicies implements IConvertible { RecordList? payinConstraints; String? payinTaxationPolicyId; RecordList? winningsCaps; String? winningsTaxationPolicyId; BettingPolicies({this.payinConstraints,this.payinTaxationPolicyId,this.winningsCaps,this.winningsTaxationPolicyId}); BettingPolicies.fromJson(Map json) { fromMap(json); } fromMap(Map json) { payinConstraints = JsonConverters.fromJson(json['payinConstraints'],'RecordList',context!); payinTaxationPolicyId = json['payinTaxationPolicyId']; winningsCaps = JsonConverters.fromJson(json['winningsCaps'],'RecordList',context!); winningsTaxationPolicyId = json['winningsTaxationPolicyId']; return this; } Map toJson() => { 'payinConstraints': JsonConverters.toJson(payinConstraints,'RecordList',context!), 'payinTaxationPolicyId': payinTaxationPolicyId, 'winningsCaps': JsonConverters.toJson(winningsCaps,'RecordList',context!), 'winningsTaxationPolicyId': winningsTaxationPolicyId }; getTypeName() => "BettingPolicies"; TypeContext? context = _ctx; } 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 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 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 ProductInstanceConfiguration implements IConvertible { String? id; BettingPolicies? bettingPolicies; String? apiUrl; Map? settings; ProductInstanceConfiguration({this.id,this.bettingPolicies,this.apiUrl,this.settings}); ProductInstanceConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; bettingPolicies = JsonConverters.fromJson(json['bettingPolicies'],'BettingPolicies',context!); apiUrl = json['apiUrl']; settings = JsonConverters.toStringMap(json['settings']); return this; } Map toJson() => { 'id': id, 'bettingPolicies': JsonConverters.toJson(bettingPolicies,'BettingPolicies',context!), 'apiUrl': apiUrl, 'settings': settings }; getTypeName() => "ProductInstanceConfiguration"; TypeContext? context = _ctx; } // @Route("/qry/configurations/productInstances") class GetProductInstanceConfiguration implements IReturn, IConvertible, IPost { String? id; Origin? origin; GetProductInstanceConfiguration({this.id,this.origin}); GetProductInstanceConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; origin = JsonConverters.fromJson(json['origin'],'Origin',context!); return this; } Map toJson() => { 'id': id, 'origin': JsonConverters.toJson(origin,'Origin',context!) }; createResponse() => ProductInstanceConfiguration(); getResponseTypeName() => "ProductInstanceConfiguration"; getTypeName() => "GetProductInstanceConfiguration"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'Money': TypeInfo(TypeOf.Class, create:() => Money()), 'PayinConstraintType': TypeInfo(TypeOf.Enum, enumValues:PayinConstraintType.values), 'PayinConstraint': TypeInfo(TypeOf.Class, create:() => PayinConstraint()), 'WinningsCapType': TypeInfo(TypeOf.Enum, enumValues:WinningsCapType.values), 'WinningsCap': TypeInfo(TypeOf.Class, create:() => WinningsCap()), 'BettingPolicies': TypeInfo(TypeOf.Class, create:() => BettingPolicies()), 'RecordList': TypeInfo(TypeOf.Class, create:() => RecordList()), 'RecordList': TypeInfo(TypeOf.Class, create:() => RecordList()), 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'RefEx': TypeInfo(TypeOf.Class, create:() => RefEx()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'BettingApp': TypeInfo(TypeOf.Class, create:() => BettingApp()), 'Origin': TypeInfo(TypeOf.Class, create:() => Origin()), 'RecordList': TypeInfo(TypeOf.GenericDef,create:() => RecordList()), 'ProductInstanceConfiguration': TypeInfo(TypeOf.Class, create:() => ProductInstanceConfiguration()), 'GetProductInstanceConfiguration': TypeInfo(TypeOf.Class, create:() => GetProductInstanceConfiguration()), });