/* Options: Date: 2026-05-06 15:20:23 Version: 10.06 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: FindRescheduleRequests.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 QueryRequest implements IConvertible { RecordDictionary qry; QueryRequest({this.qry}); QueryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { qry = JsonConverters.fromJson(json['qry'],'RecordDictionary',context!); return this; } Map toJson() => { 'qry': JsonConverters.toJson(qry,'RecordDictionary',context!) }; getTypeName() => "QueryRequest"; TypeContext? context = _ctx; } class PaginatedQueryRequest extends QueryRequest implements IConvertible { int currentPage = 0; int pageSize = 0; 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; } abstract class IPaginatedResult { int currentPage = 0; int pageSize = 0; int totalItems = 0; int totalPages = 0; } class PaginatedResult implements IPaginatedResult, IConvertible { List data = []; int currentPage = 0; int pageSize = 0; int totalItems = 0; int totalPages = 0; PaginatedResult({this.data,this.currentPage,this.pageSize,this.totalItems,this.totalPages}); PaginatedResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { data = JsonConverters.fromJson(json['data'],'List<${runtimeGenericTypeDefs(this,[0]).join(",")}>',context!); currentPage = json['currentPage']; pageSize = json['pageSize']; totalItems = json['totalItems']; totalPages = json['totalPages']; return this; } Map toJson() => { 'data': JsonConverters.toJson(data,'List',context!), 'currentPage': currentPage, 'pageSize': pageSize, 'totalItems': totalItems, 'totalPages': totalPages }; getTypeName() => "PaginatedResult<$T>"; TypeContext? context = _ctx; } // @Route("/qry/super-win/reschedule-requests") class FindRescheduleRequests extends PaginatedQueryRequest implements IReturn>, IConvertible, IPost { FindRescheduleRequests(); FindRescheduleRequests.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => PaginatedResult(); getResponseTypeName() => "PaginatedResult"; getTypeName() => "FindRescheduleRequests"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'QueryRequest': TypeInfo(TypeOf.Class, create:() => QueryRequest()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'PaginatedQueryRequest': TypeInfo(TypeOf.Class, create:() => PaginatedQueryRequest()), 'IPaginatedResult': TypeInfo(TypeOf.Interface), 'PaginatedResult': TypeInfo(TypeOf.GenericDef,create:() => PaginatedResult()), 'PaginatedResult': TypeInfo(TypeOf.Class, create:() => PaginatedResult()), 'SuperWinRescheduleRequest': TypeInfo(TypeOf.Class, create:() => SuperWinRescheduleRequest()), 'FindRescheduleRequests': TypeInfo(TypeOf.Class, create:() => FindRescheduleRequests()), });