/* Options: Date: 2025-11-08 11:10:27 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: GetAccumulator.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Pool implements IConvertible { int? id; String? name; double? coefficient; double? rtp; double? threshold; double? balance; double? rrtp; double? rBalance; Pool({this.id,this.name,this.coefficient,this.rtp,this.threshold,this.balance,this.rrtp,this.rBalance}); Pool.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; coefficient = JsonConverters.toDouble(json['coefficient']); rtp = JsonConverters.toDouble(json['rtp']); threshold = JsonConverters.toDouble(json['threshold']); balance = JsonConverters.toDouble(json['balance']); rrtp = JsonConverters.toDouble(json['rrtp']); rBalance = JsonConverters.toDouble(json['rBalance']); return this; } Map toJson() => { 'id': id, 'name': name, 'coefficient': coefficient, 'rtp': rtp, 'threshold': threshold, 'balance': balance, 'rrtp': rrtp, 'rBalance': rBalance }; getTypeName() => "Pool"; TypeContext? context = _ctx; } class Pool implements IConvertible { int? id; String? name; double? rtp; double? reserveRTP; double? totalRTP; Pool({this.id,this.name,this.rtp,this.reserveRTP,this.totalRTP}); Pool.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; rtp = JsonConverters.toDouble(json['rtp']); reserveRTP = JsonConverters.toDouble(json['reserveRTP']); totalRTP = JsonConverters.toDouble(json['totalRTP']); return this; } Map toJson() => { 'id': id, 'name': name, 'rtp': rtp, 'reserveRTP': reserveRTP, 'totalRTP': totalRTP }; getTypeName() => "Pool"; TypeContext? context = _ctx; } class Pool implements IConvertible { int? id; String? name; double? treshold; Pool({this.id,this.name,this.treshold}); Pool.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; treshold = JsonConverters.toDouble(json['treshold']); return this; } Map toJson() => { 'id': id, 'name': name, 'treshold': treshold }; getTypeName() => "Pool"; TypeContext? context = _ctx; } class Accumulator implements IConvertible { List? pools; double? rtp; Accumulator({this.pools,this.rtp}); Accumulator.fromJson(Map json) { fromMap(json); } fromMap(Map json) { pools = JsonConverters.fromJson(json['pools'],'List',context!); rtp = JsonConverters.toDouble(json['rtp']); return this; } Map toJson() => { 'pools': JsonConverters.toJson(pools,'List',context!), 'rtp': rtp }; getTypeName() => "Accumulator"; TypeContext? context = _ctx; } // @Route("/qry/accumulator") class GetAccumulator implements IReturn, IConvertible, IPost { GetAccumulator(); GetAccumulator.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => Accumulator(); getResponseTypeName() => "Accumulator"; getTypeName() => "GetAccumulator"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'Pool': TypeInfo(TypeOf.Class, create:() => Pool()), 'Accumulator': TypeInfo(TypeOf.Class, create:() => Accumulator()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAccumulator': TypeInfo(TypeOf.Class, create:() => GetAccumulator()), });