/* Options: Date: 2026-04-18 00:14:57 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: UpdateWorkflowRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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; } // @Route("/workflow/{Id}", "PUT") class UpdateWorkflowRequest implements IReturn, IConvertible, IPut { int? id; String? title; String? description; String? documentCode; int? documentTypeId; bool? isActive; UpdateWorkflowRequest({this.id,this.title,this.description,this.documentCode,this.documentTypeId,this.isActive}); UpdateWorkflowRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; title = json['title']; description = json['description']; documentCode = json['documentCode']; documentTypeId = json['documentTypeId']; isActive = json['isActive']; return this; } Map toJson() => { 'id': id, 'title': title, 'description': description, 'documentCode': documentCode, 'documentTypeId': documentTypeId, 'isActive': isActive }; createResponse() => Workflow(); getResponseTypeName() => "Workflow"; getTypeName() => "UpdateWorkflowRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qlcn_api.vsmlab.vn', types: { 'Workflow': TypeInfo(TypeOf.Class, create:() => Workflow()), 'UpdateWorkflowRequest': TypeInfo(TypeOf.Class, create:() => UpdateWorkflowRequest()), });