/* Options: Date: 2026-06-24 18:56:58 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: SearchDocumentNumberFormatRequest.* //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 DocumentNumberFormat implements IConvertible { int? id; // @required() // @StringLength(50) String? typeKey; // @required() // @StringLength(255) String? name; // @required() // @StringLength(255) String? formatTemplate; int? padding; int? resetPeriod; // @StringLength(500) String? labelKeys; bool? isActive; bool? isDeleted; DateTime? deletedAt; int? deletedBy; DateTime? createdAt; int? createdBy; DateTime? updatedAt; int? updatedBy; DocumentNumberFormat({this.id,this.typeKey,this.name,this.formatTemplate,this.padding,this.resetPeriod,this.labelKeys,this.isActive,this.isDeleted,this.deletedAt,this.deletedBy,this.createdAt,this.createdBy,this.updatedAt,this.updatedBy}); DocumentNumberFormat.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; typeKey = json['typeKey']; name = json['name']; formatTemplate = json['formatTemplate']; padding = json['padding']; resetPeriod = json['resetPeriod']; labelKeys = json['labelKeys']; isActive = json['isActive']; isDeleted = json['isDeleted']; deletedAt = JsonConverters.fromJson(json['deletedAt'],'DateTime',context!); deletedBy = json['deletedBy']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); createdBy = json['createdBy']; updatedAt = JsonConverters.fromJson(json['updatedAt'],'DateTime',context!); updatedBy = json['updatedBy']; return this; } Map toJson() => { 'id': id, 'typeKey': typeKey, 'name': name, 'formatTemplate': formatTemplate, 'padding': padding, 'resetPeriod': resetPeriod, 'labelKeys': labelKeys, 'isActive': isActive, 'isDeleted': isDeleted, 'deletedAt': JsonConverters.toJson(deletedAt,'DateTime',context!), 'deletedBy': deletedBy, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'createdBy': createdBy, 'updatedAt': JsonConverters.toJson(updatedAt,'DateTime',context!), 'updatedBy': updatedBy }; getTypeName() => "DocumentNumberFormat"; 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<$DocumentNumberFormat>"; TypeContext? context = _ctx; } // @Route("/document-number-format/search", "GET") class SearchDocumentNumberFormatRequest extends PagingRequest implements IReturn>, IConvertible, IGet { String? name; String? typeKey; SearchDocumentNumberFormatRequest({this.name,this.typeKey}); SearchDocumentNumberFormatRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); name = json['name']; typeKey = json['typeKey']; return this; } Map toJson() => super.toJson()..addAll({ 'name': name, 'typeKey': typeKey }); createResponse() => PageResponse(); getResponseTypeName() => "PageResponse"; getTypeName() => "SearchDocumentNumberFormatRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'PagingRequest': TypeInfo(TypeOf.Class, create:() => PagingRequest()), 'DocumentNumberFormat': TypeInfo(TypeOf.Class, create:() => DocumentNumberFormat()), 'PageResponse': TypeInfo(TypeOf.Class, create:() => PageResponse()), 'Pagination': TypeInfo(TypeOf.Class, create:() => Pagination()), 'SearchDocumentNumberFormatRequest': TypeInfo(TypeOf.Class, create:() => SearchDocumentNumberFormatRequest()), });