/* Options: Date: 2025-12-06 05:25:08 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: FindAppEventsSummary.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class QueryRequest implements IConvertible { Map? qry = {}; QueryRequest({this.qry}); QueryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { qry = JsonConverters.toStringMap(json['qry']); return this; } Map toJson() => { 'qry': qry }; getTypeName() => "QueryRequest"; TypeContext? context = _ctx; } class PaginatedQueryRequest extends QueryRequest implements IConvertible { int? currentPage; int? pageSize; PaginatedQueryRequest({this.currentPage,this.pageSize}); PaginatedQueryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); currentPage = json['currentPage']; pageSize = json['pageSize']; return this; } Map toJson() => super.toJson()..addAll({ 'currentPage': currentPage, 'pageSize': pageSize }); getTypeName() => "PaginatedQueryRequest"; TypeContext? context = _ctx; } class EventsSummary implements IConvertible { int? n; int? s; int? i; int? w; int? e; EventsSummary({this.n,this.s,this.i,this.w,this.e}); EventsSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { n = json['n']; s = json['s']; i = json['i']; w = json['w']; e = json['e']; return this; } Map toJson() => { 'n': n, 's': s, 'i': i, 'w': w, 'e': e }; getTypeName() => "EventsSummary"; TypeContext? context = _ctx; } // @Route("/qry/app-events-summary") class FindAppEventsSummary extends PaginatedQueryRequest implements IReturn, IConvertible, IPost { FindAppEventsSummary(); FindAppEventsSummary.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => EventsSummary(); getResponseTypeName() => "EventsSummary"; getTypeName() => "FindAppEventsSummary"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'QueryRequest': TypeInfo(TypeOf.Class, create:() => QueryRequest()), 'PaginatedQueryRequest': TypeInfo(TypeOf.Class, create:() => PaginatedQueryRequest()), 'EventsSummary': TypeInfo(TypeOf.Class, create:() => EventsSummary()), 'FindAppEventsSummary': TypeInfo(TypeOf.Class, create:() => FindAppEventsSummary()), });