/* Options: Date: 2026-04-24 04:09: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: ApproveWorkflowDeleteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkflowDeleteRequestDetail implements IConvertible { int? id; int? workflowId; int? requestedBy; String? requestedByName; int? approverId; String? approverName; WorkflowDeleteRequestStatus? status; String? reason; String? comment; DateTime? createdAt; DateTime? actionAt; WorkflowDeleteRequestDetail({this.id,this.workflowId,this.requestedBy,this.requestedByName,this.approverId,this.approverName,this.status,this.reason,this.comment,this.createdAt,this.actionAt}); WorkflowDeleteRequestDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; workflowId = json['workflowId']; requestedBy = json['requestedBy']; requestedByName = json['requestedByName']; approverId = json['approverId']; approverName = json['approverName']; status = JsonConverters.fromJson(json['status'],'WorkflowDeleteRequestStatus',context!); reason = json['reason']; comment = json['comment']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); actionAt = JsonConverters.fromJson(json['actionAt'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'workflowId': workflowId, 'requestedBy': requestedBy, 'requestedByName': requestedByName, 'approverId': approverId, 'approverName': approverName, 'status': JsonConverters.toJson(status,'WorkflowDeleteRequestStatus',context!), 'reason': reason, 'comment': comment, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'actionAt': JsonConverters.toJson(actionAt,'DateTime',context!) }; getTypeName() => "WorkflowDeleteRequestDetail"; TypeContext? context = _ctx; } class WorkflowDeleteRequestResponse implements IConvertible { int? code; String? message; bool? requiresApproval; WorkflowDeleteRequestDetail? request; WorkflowDeleteRequestResponse({this.code,this.message,this.requiresApproval,this.request}); WorkflowDeleteRequestResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; message = json['message']; requiresApproval = json['requiresApproval']; request = JsonConverters.fromJson(json['request'],'WorkflowDeleteRequestDetail',context!); return this; } Map toJson() => { 'code': code, 'message': message, 'requiresApproval': requiresApproval, 'request': JsonConverters.toJson(request,'WorkflowDeleteRequestDetail',context!) }; getTypeName() => "WorkflowDeleteRequestResponse"; TypeContext? context = _ctx; } // @Route("/workflow-delete-request/{Id}/approve", "POST") class ApproveWorkflowDeleteRequest implements IReturn, IConvertible, IPost { int? id; bool? approve; String? comment; ApproveWorkflowDeleteRequest({this.id,this.approve,this.comment}); ApproveWorkflowDeleteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; approve = json['approve']; comment = json['comment']; return this; } Map toJson() => { 'id': id, 'approve': approve, 'comment': comment }; createResponse() => WorkflowDeleteRequestResponse(); getResponseTypeName() => "WorkflowDeleteRequestResponse"; getTypeName() => "ApproveWorkflowDeleteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qlcn_api.vsmlab.vn', types: { 'WorkflowDeleteRequestDetail': TypeInfo(TypeOf.Class, create:() => WorkflowDeleteRequestDetail()), 'WorkflowDeleteRequestStatus': TypeInfo(TypeOf.Class, create:() => WorkflowDeleteRequestStatus()), 'WorkflowDeleteRequestResponse': TypeInfo(TypeOf.Class, create:() => WorkflowDeleteRequestResponse()), 'ApproveWorkflowDeleteRequest': TypeInfo(TypeOf.Class, create:() => ApproveWorkflowDeleteRequest()), });