/* Options: Date: 2026-08-11 12:32:28 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: EngineRunsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkflowRunStepView implements IConvertible { int? StepId; String? NodeId; String? Name; String? Kind; String? Status; int? DurationMs; String? Input; String? Output; String? Note; String? BranchReason; int? Attempts; WorkflowRunStepView({this.StepId,this.NodeId,this.Name,this.Kind,this.Status,this.DurationMs,this.Input,this.Output,this.Note,this.BranchReason,this.Attempts}); WorkflowRunStepView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StepId = json['StepId']; NodeId = json['NodeId']; Name = json['Name']; Kind = json['Kind']; Status = json['Status']; DurationMs = json['DurationMs']; Input = json['Input']; Output = json['Output']; Note = json['Note']; BranchReason = json['BranchReason']; Attempts = json['Attempts']; return this; } Map toJson() => { 'StepId': StepId, 'NodeId': NodeId, 'Name': Name, 'Kind': Kind, 'Status': Status, 'DurationMs': DurationMs, 'Input': Input, 'Output': Output, 'Note': Note, 'BranchReason': BranchReason, 'Attempts': Attempts }; getTypeName() => "WorkflowRunStepView"; TypeContext? context = _ctx; } class WorkflowRunView implements IConvertible { int? RunId; String? RunKey; int? WorkflowId; String? WorkflowName; int? VersionNum; String? Status; String? RecordLabel; String? RecordHref; String? WaitReason; DateTime? RunAfter; int? Attempts; int? MaxAttempts; DateTime? StartedAt; DateTime? FinishedAt; int? DurationMs; List? Steps = []; WorkflowRunView({this.RunId,this.RunKey,this.WorkflowId,this.WorkflowName,this.VersionNum,this.Status,this.RecordLabel,this.RecordHref,this.WaitReason,this.RunAfter,this.Attempts,this.MaxAttempts,this.StartedAt,this.FinishedAt,this.DurationMs,this.Steps}); WorkflowRunView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RunId = json['RunId']; RunKey = json['RunKey']; WorkflowId = json['WorkflowId']; WorkflowName = json['WorkflowName']; VersionNum = json['VersionNum']; Status = json['Status']; RecordLabel = json['RecordLabel']; RecordHref = json['RecordHref']; WaitReason = json['WaitReason']; RunAfter = JsonConverters.fromJson(json['RunAfter'],'DateTime',context!); Attempts = json['Attempts']; MaxAttempts = json['MaxAttempts']; StartedAt = JsonConverters.fromJson(json['StartedAt'],'DateTime',context!); FinishedAt = JsonConverters.fromJson(json['FinishedAt'],'DateTime',context!); DurationMs = json['DurationMs']; Steps = JsonConverters.fromJson(json['Steps'],'List',context!); return this; } Map toJson() => { 'RunId': RunId, 'RunKey': RunKey, 'WorkflowId': WorkflowId, 'WorkflowName': WorkflowName, 'VersionNum': VersionNum, 'Status': Status, 'RecordLabel': RecordLabel, 'RecordHref': RecordHref, 'WaitReason': WaitReason, 'RunAfter': JsonConverters.toJson(RunAfter,'DateTime',context!), 'Attempts': Attempts, 'MaxAttempts': MaxAttempts, 'StartedAt': JsonConverters.toJson(StartedAt,'DateTime',context!), 'FinishedAt': JsonConverters.toJson(FinishedAt,'DateTime',context!), 'DurationMs': DurationMs, 'Steps': JsonConverters.toJson(Steps,'List',context!) }; getTypeName() => "WorkflowRunView"; TypeContext? context = _ctx; } class EngineRunsResponse implements IConvertible { List? Runs = []; ResponseStatus? ResponseStatus; EngineRunsResponse({this.Runs,this.ResponseStatus}); EngineRunsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Runs = JsonConverters.fromJson(json['Runs'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Runs': JsonConverters.toJson(Runs,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "EngineRunsResponse"; TypeContext? context = _ctx; } // @Route("/v1/engine/runs", "GET,OPTIONS") class EngineRunsRequest implements IReturn, IConvertible, IGet { String? Status; int? WorkflowId; int? Top; EngineRunsRequest({this.Status,this.WorkflowId,this.Top}); EngineRunsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = json['Status']; WorkflowId = json['WorkflowId']; Top = json['Top']; return this; } Map toJson() => { 'Status': Status, 'WorkflowId': WorkflowId, 'Top': Top }; createResponse() => EngineRunsResponse(); getResponseTypeName() => "EngineRunsResponse"; getTypeName() => "EngineRunsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'WorkflowRunStepView': TypeInfo(TypeOf.Class, create:() => WorkflowRunStepView()), 'WorkflowRunView': TypeInfo(TypeOf.Class, create:() => WorkflowRunView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EngineRunsResponse': TypeInfo(TypeOf.Class, create:() => EngineRunsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EngineRunsRequest': TypeInfo(TypeOf.Class, create:() => EngineRunsRequest()), });