/* Options: Date: 2026-04-24 20:11:40 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: GetPendingWorkflowRedoRequests.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkflowRedoRequestDetail implements IConvertible { int? id; int? documentId; int? stepId; String? stepName; int? requestedBy; String? requestedByName; int? approverId; String? approverName; int? status; String? reason; String? comment; DateTime? createdAt; DateTime? actionAt; WorkflowRedoRequestDetail({this.id,this.documentId,this.stepId,this.stepName,this.requestedBy,this.requestedByName,this.approverId,this.approverName,this.status,this.reason,this.comment,this.createdAt,this.actionAt}); WorkflowRedoRequestDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; documentId = json['documentId']; stepId = json['stepId']; stepName = json['stepName']; 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, 'stepId': stepId, 'stepName': stepName, '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() => "WorkflowRedoRequestDetail"; TypeContext? context = _ctx; } // @Route("/workflow/{DocumentId}/redo-requests/pending", "GET") class GetPendingWorkflowRedoRequests implements IReturn>, IConvertible, IGet { int? documentId; GetPendingWorkflowRedoRequests({this.documentId}); GetPendingWorkflowRedoRequests.fromJson(Map json) { fromMap(json); } fromMap(Map json) { documentId = json['documentId']; return this; } Map toJson() => { 'documentId': documentId }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "GetPendingWorkflowRedoRequests"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'WorkflowRedoRequestDetail': TypeInfo(TypeOf.Class, create:() => WorkflowRedoRequestDetail()), 'GetPendingWorkflowRedoRequests': TypeInfo(TypeOf.Class, create:() => GetPendingWorkflowRedoRequests()), });