/* Options: Date: 2026-02-04 10:26:05 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: UpdateStepStatusRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum CategoryStatusKeys { WorkCreated, WorkInProgress, WorkReturned, WorkCompleted, WorkCancelled, WorkDone, StepNotStarted, StepInProgress, StepDone, StepCompleted, StepSkipped, StepReturned, NotSigned, SignatureReturned, SignaturePending, } abstract class IResponseRequest { int? code; String? message; } class WorkflowStepResponse implements IResponseRequest, IConvertible { int? code; String? message; int? insertedId; WorkflowStepResponse({this.code,this.message,this.insertedId}); WorkflowStepResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; message = json['message']; insertedId = json['insertedId']; return this; } Map toJson() => { 'code': code, 'message': message, 'insertedId': insertedId }; getTypeName() => "WorkflowStepResponse"; TypeContext? context = _ctx; } // @Route("/WorkflowStep/status", "Post") class UpdateStepStatusRequest implements IReturn, IConvertible, IPost { int? stepId; CategoryStatusKeys? statusKey; String? comment; UpdateStepStatusRequest({this.stepId,this.statusKey,this.comment}); UpdateStepStatusRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { stepId = json['stepId']; statusKey = JsonConverters.fromJson(json['statusKey'],'CategoryStatusKeys',context!); comment = json['comment']; return this; } Map toJson() => { 'stepId': stepId, 'statusKey': JsonConverters.toJson(statusKey,'CategoryStatusKeys',context!), 'comment': comment }; createResponse() => WorkflowStepResponse(); getResponseTypeName() => "WorkflowStepResponse"; getTypeName() => "UpdateStepStatusRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'CategoryStatusKeys': TypeInfo(TypeOf.Enum, enumValues:CategoryStatusKeys.values), 'IResponseRequest': TypeInfo(TypeOf.Interface), 'WorkflowStepResponse': TypeInfo(TypeOf.Class, create:() => WorkflowStepResponse()), 'UpdateStepStatusRequest': TypeInfo(TypeOf.Class, create:() => UpdateStepStatusRequest()), });