/* Options: Date: 2026-04-24 04:07:31 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: GetWorkflowDeleteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum WorkflowDeleteRequestStatus { Pending, Approved, Rejected, Cancelled, } 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; } // @Route("/workflow/{WorkflowId}/delete-request", "GET") class GetWorkflowDeleteRequest implements IReturn, IConvertible, IGet { int? workflowId; GetWorkflowDeleteRequest({this.workflowId}); GetWorkflowDeleteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { workflowId = json['workflowId']; return this; } Map toJson() => { 'workflowId': workflowId }; createResponse() => WorkflowDeleteRequestDetail(); getResponseTypeName() => "WorkflowDeleteRequestDetail"; getTypeName() => "GetWorkflowDeleteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qlcn_api.vsmlab.vn', types: { 'WorkflowDeleteRequestStatus': TypeInfo(TypeOf.Enum, enumValues:WorkflowDeleteRequestStatus.values), 'WorkflowDeleteRequestDetail': TypeInfo(TypeOf.Class, create:() => WorkflowDeleteRequestDetail()), 'GetWorkflowDeleteRequest': TypeInfo(TypeOf.Class, create:() => GetWorkflowDeleteRequest()), });