/* Options: Date: 2025-12-06 05:25:53 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: FindSlips.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SlipFormat { static const SlipFormat Default = const SlipFormat._(0); static const SlipFormat WalletDTO = const SlipFormat._(1); final int _value; const SlipFormat._(this._value); int get value => _value; static List get values => const [Default,WalletDTO]; } abstract class IPaginatedResult { int? currentPage; int? pageSize; int? totalItems; int? totalPages; } class PaginatedResult implements IPaginatedResult, IConvertible { List? data = []; int? currentPage; int? pageSize; int? totalItems; int? totalPages; 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/slips") class FindSlips implements IReturn>, IConvertible, IPost { String? id; SlipFormat? slipFormat; FindSlips({this.id,this.slipFormat}); FindSlips.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; slipFormat = JsonConverters.fromJson(json['slipFormat'],'SlipFormat',context!); return this; } Map toJson() => { 'id': id, 'slipFormat': JsonConverters.toJson(slipFormat,'SlipFormat',context!) }; createResponse() => PaginatedResult(); getResponseTypeName() => "PaginatedResult"; getTypeName() => "FindSlips"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'SlipFormat': TypeInfo(TypeOf.Enum, enumValues:SlipFormat.values), 'IPaginatedResult': TypeInfo(TypeOf.Interface), 'PaginatedResult': TypeInfo(TypeOf.GenericDef,create:() => PaginatedResult()), 'PaginatedResult': TypeInfo(TypeOf.Class, create:() => PaginatedResult()), 'Slip': TypeInfo(TypeOf.Class, create:() => Slip()), 'FindSlips': TypeInfo(TypeOf.Class, create:() => FindSlips()), });