/* Options: Date: 2026-04-24 20:17:41 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: CancelWorkflowDeleteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkflowDeleteRequestDetail implements IConvertible { int? id; int? documentId; int? requestedBy; String? requestedByName; int? approverId; String? approverName; int? status; String? reason; String? comment; DateTime? createdAt; DateTime? actionAt; WorkflowDeleteRequestDetail({this.id,this.documentId,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']; documentId = json['documentId']; requestedBy = json['requestedBy']; requestedByName = json['requestedByName']; approverId = json['approverId']; approverName = json['approverName']; status = json['status']; 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, 'documentId': documentId, 'requestedBy': requestedBy, 'requestedByName': requestedByName, 'approverId': approverId, 'approverName': approverName, 'status': status, '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}/cancel", "POST") class CancelWorkflowDeleteRequest implements IReturn, IConvertible, IPost { int? id; CancelWorkflowDeleteRequest({this.id}); CancelWorkflowDeleteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => WorkflowDeleteRequestResponse(); getResponseTypeName() => "WorkflowDeleteRequestResponse"; getTypeName() => "CancelWorkflowDeleteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'WorkflowDeleteRequestDetail': TypeInfo(TypeOf.Class, create:() => WorkflowDeleteRequestDetail()), 'WorkflowDeleteRequestResponse': TypeInfo(TypeOf.Class, create:() => WorkflowDeleteRequestResponse()), 'CancelWorkflowDeleteRequest': TypeInfo(TypeOf.Class, create:() => CancelWorkflowDeleteRequest()), });