/* Options: Date: 2026-11-21 21:05:31 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EngineWorkflowArchiveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class EngineWorkflowArchiveResponse implements IConvertible { int? WorkflowId; String? Status; int? Cancelled; bool? Withdrew; String? Note; ResponseStatus? ResponseStatus; EngineWorkflowArchiveResponse({this.WorkflowId,this.Status,this.Cancelled,this.Withdrew,this.Note,this.ResponseStatus}); EngineWorkflowArchiveResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WorkflowId = json['WorkflowId']; Status = json['Status']; Cancelled = json['Cancelled']; Withdrew = json['Withdrew']; Note = json['Note']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'WorkflowId': WorkflowId, 'Status': Status, 'Cancelled': Cancelled, 'Withdrew': Withdrew, 'Note': Note, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "EngineWorkflowArchiveResponse"; TypeContext? context = _ctx; } // @Route("/v1/engine/workflows/{WorkflowId}/archive", "POST") // @Route("/v1/engine/workflows/{WorkflowId}/restore", "POST") class EngineWorkflowArchiveRequest implements IReturn, IConvertible, IPost { int? WorkflowId; EngineWorkflowArchiveRequest({this.WorkflowId}); EngineWorkflowArchiveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WorkflowId = json['WorkflowId']; return this; } Map toJson() => { 'WorkflowId': WorkflowId }; createResponse() => EngineWorkflowArchiveResponse(); getResponseTypeName() => "EngineWorkflowArchiveResponse"; getTypeName() => "EngineWorkflowArchiveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'EngineWorkflowArchiveResponse': TypeInfo(TypeOf.Class, create:() => EngineWorkflowArchiveResponse()), 'EngineWorkflowArchiveRequest': TypeInfo(TypeOf.Class, create:() => EngineWorkflowArchiveRequest()), });