/* Options: Date: 2025-11-08 08:18:49 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: GetLastRoundsStats.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Rating implements IConvertible { int? val; int? count; Rating({this.val,this.count}); Rating.fromJson(Map json) { fromMap(json); } fromMap(Map json) { val = json['val']; count = json['count']; return this; } Map toJson() => { 'val': val, 'count': count }; getTypeName() => "Rating"; TypeContext? context = _ctx; } class Comparison implements IConvertible { int? v1; int? v2; double? p1; double? p2; Comparison({this.v1,this.v2,this.p1,this.p2}); Comparison.fromJson(Map json) { fromMap(json); } fromMap(Map json) { v1 = json['v1']; v2 = json['v2']; p1 = JsonConverters.toDouble(json['p1']); p2 = JsonConverters.toDouble(json['p2']); return this; } Map toJson() => { 'v1': v1, 'v2': v2, 'p1': p1, 'p2': p2 }; getTypeName() => "Comparison"; TypeContext? context = _ctx; } class LastRoundsStats implements IConvertible { String? id; List? topSix; List? bottomSix; List? topFirstColors; List? topColors; Comparison? firstNrEvenVsOdd; Comparison? firstNrLessVsGreater24_5; Comparison? sumOfFirstFiveLessVsGreaterThan122_5; Comparison? totalEvenVsOdd; LastRoundsStats({this.id,this.topSix,this.bottomSix,this.topFirstColors,this.topColors,this.firstNrEvenVsOdd,this.firstNrLessVsGreater24_5,this.sumOfFirstFiveLessVsGreaterThan122_5,this.totalEvenVsOdd}); LastRoundsStats.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; topSix = JsonConverters.fromJson(json['topSix'],'List',context!); bottomSix = JsonConverters.fromJson(json['bottomSix'],'List',context!); topFirstColors = JsonConverters.fromJson(json['topFirstColors'],'List',context!); topColors = JsonConverters.fromJson(json['topColors'],'List',context!); firstNrEvenVsOdd = JsonConverters.fromJson(json['firstNrEvenVsOdd'],'Comparison',context!); firstNrLessVsGreater24_5 = JsonConverters.fromJson(json['firstNrLessVsGreater24_5'],'Comparison',context!); sumOfFirstFiveLessVsGreaterThan122_5 = JsonConverters.fromJson(json['sumOfFirstFiveLessVsGreaterThan122_5'],'Comparison',context!); totalEvenVsOdd = JsonConverters.fromJson(json['totalEvenVsOdd'],'Comparison',context!); return this; } Map toJson() => { 'id': id, 'topSix': JsonConverters.toJson(topSix,'List',context!), 'bottomSix': JsonConverters.toJson(bottomSix,'List',context!), 'topFirstColors': JsonConverters.toJson(topFirstColors,'List',context!), 'topColors': JsonConverters.toJson(topColors,'List',context!), 'firstNrEvenVsOdd': JsonConverters.toJson(firstNrEvenVsOdd,'Comparison',context!), 'firstNrLessVsGreater24_5': JsonConverters.toJson(firstNrLessVsGreater24_5,'Comparison',context!), 'sumOfFirstFiveLessVsGreaterThan122_5': JsonConverters.toJson(sumOfFirstFiveLessVsGreaterThan122_5,'Comparison',context!), 'totalEvenVsOdd': JsonConverters.toJson(totalEvenVsOdd,'Comparison',context!) }; getTypeName() => "LastRoundsStats"; TypeContext? context = _ctx; } // @Route("/qry/stats/last10") class GetLastRoundsStats implements IReturn, IConvertible, IPost { GetLastRoundsStats(); GetLastRoundsStats.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => LastRoundsStats(); getResponseTypeName() => "LastRoundsStats"; getTypeName() => "GetLastRoundsStats"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'Rating': TypeInfo(TypeOf.Class, create:() => Rating()), 'Comparison': TypeInfo(TypeOf.Class, create:() => Comparison()), 'LastRoundsStats': TypeInfo(TypeOf.Class, create:() => LastRoundsStats()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetLastRoundsStats': TypeInfo(TypeOf.Class, create:() => GetLastRoundsStats()), });