/* Options: Date: 2026-02-13 08:03:32 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SearchDocumentReferenceRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PagingRequest implements IConvertible { int? page; int? limit; PagingRequest({this.page,this.limit}); PagingRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { page = json['page']; limit = json['limit']; return this; } Map toJson() => { 'page': page, 'limit': limit }; getTypeName() => "PagingRequest"; TypeContext? context = _ctx; } class DocumentReferences implements IConvertible { int? id; int? parentDocumentId; String? title; String? documentCode; String? referenceUrl; String? description; DocumentReferences({this.id,this.parentDocumentId,this.title,this.documentCode,this.referenceUrl,this.description}); DocumentReferences.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; parentDocumentId = json['parentDocumentId']; title = json['title']; documentCode = json['documentCode']; referenceUrl = json['referenceUrl']; description = json['description']; return this; } Map toJson() => { 'id': id, 'parentDocumentId': parentDocumentId, 'title': title, 'documentCode': documentCode, 'referenceUrl': referenceUrl, 'description': description }; getTypeName() => "DocumentReferences"; TypeContext? context = _ctx; } class PageResponse implements IResponseRequest, IConvertible { int? code; String? message; List? data; Pagination? pagination; PageResponse({this.code,this.message,this.data,this.pagination}); PageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; message = json['message']; data = JsonConverters.fromJson(json['data'],'List<${runtimeGenericTypeDefs(this,[0]).join(",")}>',context!); pagination = JsonConverters.fromJson(json['pagination'],'Pagination',context!); return this; } Map toJson() => { 'code': code, 'message': message, 'data': JsonConverters.toJson(data,'List',context!), 'pagination': JsonConverters.toJson(pagination,'Pagination',context!) }; getTypeName() => "PageResponse<$DocumentReferences>"; TypeContext? context = _ctx; } // @Route("/document-reference/search", "GET") class SearchDocumentReferenceRequest extends PagingRequest implements IReturn>, IConvertible, IGet { String? documentCode; int? parentDocumentId; String? title; SearchDocumentReferenceRequest({this.documentCode,this.parentDocumentId,this.title}); SearchDocumentReferenceRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); documentCode = json['documentCode']; parentDocumentId = json['parentDocumentId']; title = json['title']; return this; } Map toJson() => super.toJson()..addAll({ 'documentCode': documentCode, 'parentDocumentId': parentDocumentId, 'title': title }); createResponse() => PageResponse(); getResponseTypeName() => "PageResponse"; getTypeName() => "SearchDocumentReferenceRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'PagingRequest': TypeInfo(TypeOf.Class, create:() => PagingRequest()), 'DocumentReferences': TypeInfo(TypeOf.Class, create:() => DocumentReferences()), 'PageResponse': TypeInfo(TypeOf.Class, create:() => PageResponse()), 'Pagination': TypeInfo(TypeOf.Class, create:() => Pagination()), 'SearchDocumentReferenceRequest': TypeInfo(TypeOf.Class, create:() => SearchDocumentReferenceRequest()), });