/* Options: Date: 2026-04-18 00:15:49 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://qlcn-api.vsmlab.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SearchWorkflowRequest.* //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 Workflow implements IConvertible { int? id; // @required() // @StringLength(500) String? title; // @StringLength(4000) String? description; // @StringLength(100) String? documentCode; int? documentTypeId; bool? isInstance; int? mainId; bool? isActive; int? statusId; int? accountId; int? departmentId; // @ignore() int? scopeType; // @StringLength(500) String? createdBy; DateTime? createdAt; // @StringLength(500) String? updatedBy; DateTime? updatedAt; Workflow({this.id,this.title,this.description,this.documentCode,this.documentTypeId,this.isInstance,this.mainId,this.isActive,this.statusId,this.accountId,this.departmentId,this.scopeType,this.createdBy,this.createdAt,this.updatedBy,this.updatedAt}); Workflow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; title = json['title']; description = json['description']; documentCode = json['documentCode']; documentTypeId = json['documentTypeId']; isInstance = json['isInstance']; mainId = json['mainId']; isActive = json['isActive']; statusId = json['statusId']; accountId = json['accountId']; departmentId = json['departmentId']; scopeType = json['scopeType']; createdBy = json['createdBy']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); updatedBy = json['updatedBy']; updatedAt = JsonConverters.fromJson(json['updatedAt'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'title': title, 'description': description, 'documentCode': documentCode, 'documentTypeId': documentTypeId, 'isInstance': isInstance, 'mainId': mainId, 'isActive': isActive, 'statusId': statusId, 'accountId': accountId, 'departmentId': departmentId, 'scopeType': scopeType, 'createdBy': createdBy, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'updatedBy': updatedBy, 'updatedAt': JsonConverters.toJson(updatedAt,'DateTime',context!) }; getTypeName() => "Workflow"; 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<$Workflow>"; TypeContext? context = _ctx; } // @Route("/workflow/search", "GET") class SearchWorkflowRequest extends PagingRequest implements IReturn>, IConvertible, IGet { String? keyword; bool? isInstance; bool? isActive; int? documentTypeId; int? mainId; int? accountId; int? departmentId; SearchWorkflowRequest({this.keyword,this.isInstance,this.isActive,this.documentTypeId,this.mainId,this.accountId,this.departmentId}); SearchWorkflowRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); keyword = json['keyword']; isInstance = json['isInstance']; isActive = json['isActive']; documentTypeId = json['documentTypeId']; mainId = json['mainId']; accountId = json['accountId']; departmentId = json['departmentId']; return this; } Map toJson() => super.toJson()..addAll({ 'keyword': keyword, 'isInstance': isInstance, 'isActive': isActive, 'documentTypeId': documentTypeId, 'mainId': mainId, 'accountId': accountId, 'departmentId': departmentId }); createResponse() => PageResponse(); getResponseTypeName() => "PageResponse"; getTypeName() => "SearchWorkflowRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qlcn_api.vsmlab.vn', types: { 'PagingRequest': TypeInfo(TypeOf.Class, create:() => PagingRequest()), 'Workflow': TypeInfo(TypeOf.Class, create:() => Workflow()), 'PageResponse': TypeInfo(TypeOf.Class, create:() => PageResponse()), 'Pagination': TypeInfo(TypeOf.Class, create:() => Pagination()), 'SearchWorkflowRequest': TypeInfo(TypeOf.Class, create:() => SearchWorkflowRequest()), });