/* Options: Date: 2026-11-21 21:05:14 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: EngineWorkflowArchivePreviewRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkflowArchivePreview implements IConvertible { int? WorkflowId; String? Name; String? Status; String? Trigger; int? Queued; int? Waiting; int? Running; String? Refusal; bool? HasPendingRequest; WorkflowArchivePreview({this.WorkflowId,this.Name,this.Status,this.Trigger,this.Queued,this.Waiting,this.Running,this.Refusal,this.HasPendingRequest}); WorkflowArchivePreview.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WorkflowId = json['WorkflowId']; Name = json['Name']; Status = json['Status']; Trigger = json['Trigger']; Queued = json['Queued']; Waiting = json['Waiting']; Running = json['Running']; Refusal = json['Refusal']; HasPendingRequest = json['HasPendingRequest']; return this; } Map toJson() => { 'WorkflowId': WorkflowId, 'Name': Name, 'Status': Status, 'Trigger': Trigger, 'Queued': Queued, 'Waiting': Waiting, 'Running': Running, 'Refusal': Refusal, 'HasPendingRequest': HasPendingRequest }; getTypeName() => "WorkflowArchivePreview"; TypeContext? context = _ctx; } class EngineWorkflowArchivePreviewResponse implements IConvertible { WorkflowArchivePreview? Preview; ResponseStatus? ResponseStatus; EngineWorkflowArchivePreviewResponse({this.Preview,this.ResponseStatus}); EngineWorkflowArchivePreviewResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Preview = JsonConverters.fromJson(json['Preview'],'WorkflowArchivePreview',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Preview': JsonConverters.toJson(Preview,'WorkflowArchivePreview',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "EngineWorkflowArchivePreviewResponse"; TypeContext? context = _ctx; } // @Route("/v1/engine/workflows/{WorkflowId}/archive", "GET") class EngineWorkflowArchivePreviewRequest implements IReturn, IConvertible, IGet { int? WorkflowId; EngineWorkflowArchivePreviewRequest({this.WorkflowId}); EngineWorkflowArchivePreviewRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WorkflowId = json['WorkflowId']; return this; } Map toJson() => { 'WorkflowId': WorkflowId }; createResponse() => EngineWorkflowArchivePreviewResponse(); getResponseTypeName() => "EngineWorkflowArchivePreviewResponse"; getTypeName() => "EngineWorkflowArchivePreviewRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'WorkflowArchivePreview': TypeInfo(TypeOf.Class, create:() => WorkflowArchivePreview()), 'EngineWorkflowArchivePreviewResponse': TypeInfo(TypeOf.Class, create:() => EngineWorkflowArchivePreviewResponse()), 'EngineWorkflowArchivePreviewRequest': TypeInfo(TypeOf.Class, create:() => EngineWorkflowArchivePreviewRequest()), });