/* Options: Date: 2026-02-04 10:26:01 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: GetWorkflowFlowchartRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IResponseRequest { int? code; String? message; } class WorkflowNode implements IConvertible { int? stepId; String? stepName; int? signerId; String? signerName; String? departmentName; String? telephone; String? avatar; String? email; int? signerType; int? actionType; int? status; String? statusText; String? signStatusText; DateTime? signAt; bool? isSigned; int? confirmStatus; String? confirmStatusText; int? signedFileId; String? signedFileName; bool? isCurrent; String? reasonReturn; DateTime? returnDate; DateTime? actionDate; int? orderIndex; bool? isUsingForm; WorkflowNode({this.stepId,this.stepName,this.signerId,this.signerName,this.departmentName,this.telephone,this.avatar,this.email,this.signerType,this.actionType,this.status,this.statusText,this.signStatusText,this.signAt,this.isSigned,this.confirmStatus,this.confirmStatusText,this.signedFileId,this.signedFileName,this.isCurrent,this.reasonReturn,this.returnDate,this.actionDate,this.orderIndex,this.isUsingForm}); WorkflowNode.fromJson(Map json) { fromMap(json); } fromMap(Map json) { stepId = json['stepId']; stepName = json['stepName']; signerId = json['signerId']; signerName = json['signerName']; departmentName = json['departmentName']; telephone = json['telephone']; avatar = json['avatar']; email = json['email']; signerType = json['signerType']; actionType = json['actionType']; status = json['status']; statusText = json['statusText']; signStatusText = json['signStatusText']; signAt = JsonConverters.fromJson(json['signAt'],'DateTime',context!); isSigned = json['isSigned']; confirmStatus = json['confirmStatus']; confirmStatusText = json['confirmStatusText']; signedFileId = json['signedFileId']; signedFileName = json['signedFileName']; isCurrent = json['isCurrent']; reasonReturn = json['reasonReturn']; returnDate = JsonConverters.fromJson(json['returnDate'],'DateTime',context!); actionDate = JsonConverters.fromJson(json['actionDate'],'DateTime',context!); orderIndex = json['orderIndex']; isUsingForm = json['isUsingForm']; return this; } Map toJson() => { 'stepId': stepId, 'stepName': stepName, 'signerId': signerId, 'signerName': signerName, 'departmentName': departmentName, 'telephone': telephone, 'avatar': avatar, 'email': email, 'signerType': signerType, 'actionType': actionType, 'status': status, 'statusText': statusText, 'signStatusText': signStatusText, 'signAt': JsonConverters.toJson(signAt,'DateTime',context!), 'isSigned': isSigned, 'confirmStatus': confirmStatus, 'confirmStatusText': confirmStatusText, 'signedFileId': signedFileId, 'signedFileName': signedFileName, 'isCurrent': isCurrent, 'reasonReturn': reasonReturn, 'returnDate': JsonConverters.toJson(returnDate,'DateTime',context!), 'actionDate': JsonConverters.toJson(actionDate,'DateTime',context!), 'orderIndex': orderIndex, 'isUsingForm': isUsingForm }; getTypeName() => "WorkflowNode"; TypeContext? context = _ctx; } class GetWorkflowFlowchartResponse implements IResponseRequest, IConvertible { int? code; String? message; List? data; GetWorkflowFlowchartResponse({this.code,this.message,this.data}); GetWorkflowFlowchartResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; message = json['message']; data = JsonConverters.fromJson(json['data'],'List',context!); return this; } Map toJson() => { 'code': code, 'message': message, 'data': JsonConverters.toJson(data,'List',context!) }; getTypeName() => "GetWorkflowFlowchartResponse"; TypeContext? context = _ctx; } // @Route("/WorkflowStep/flowchart", "Get") class GetWorkflowFlowchartRequest implements IReturn, IConvertible, IGet { int? workflowId; GetWorkflowFlowchartRequest({this.workflowId}); GetWorkflowFlowchartRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { workflowId = json['workflowId']; return this; } Map toJson() => { 'workflowId': workflowId }; createResponse() => GetWorkflowFlowchartResponse(); getResponseTypeName() => "GetWorkflowFlowchartResponse"; getTypeName() => "GetWorkflowFlowchartRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'IResponseRequest': TypeInfo(TypeOf.Interface), 'WorkflowNode': TypeInfo(TypeOf.Class, create:() => WorkflowNode()), 'GetWorkflowFlowchartResponse': TypeInfo(TypeOf.Class, create:() => GetWorkflowFlowchartResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetWorkflowFlowchartRequest': TypeInfo(TypeOf.Class, create:() => GetWorkflowFlowchartRequest()), });