/* Options: Date: 2026-08-11 12:32:32 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: EngineHealthRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkflowThroughputView implements IConvertible { int? Hour; int? Ok; int? Failed; WorkflowThroughputView({this.Hour,this.Ok,this.Failed}); WorkflowThroughputView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Hour = json['Hour']; Ok = json['Ok']; Failed = json['Failed']; return this; } Map toJson() => { 'Hour': Hour, 'Ok': Ok, 'Failed': Failed }; getTypeName() => "WorkflowThroughputView"; TypeContext? context = _ctx; } class WorkflowVerticalHealthView implements IConvertible { String? Vertical; int? Workflows; int? Runs30; int? Fail30; int? Waiting; WorkflowVerticalHealthView({this.Vertical,this.Workflows,this.Runs30,this.Fail30,this.Waiting}); WorkflowVerticalHealthView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Vertical = json['Vertical']; Workflows = json['Workflows']; Runs30 = json['Runs30']; Fail30 = json['Fail30']; Waiting = json['Waiting']; return this; } Map toJson() => { 'Vertical': Vertical, 'Workflows': Workflows, 'Runs30': Runs30, 'Fail30': Fail30, 'Waiting': Waiting }; getTypeName() => "WorkflowVerticalHealthView"; TypeContext? context = _ctx; } class EngineHealthResponse implements IConvertible { int? Runs30; int? Succeeded30; int? Failed30; int? Waiting; int? OpenErrorGroups; int? AffectedRuns; int? SlaBreaches; List? Throughput = []; List? ByVertical = []; ResponseStatus? ResponseStatus; EngineHealthResponse({this.Runs30,this.Succeeded30,this.Failed30,this.Waiting,this.OpenErrorGroups,this.AffectedRuns,this.SlaBreaches,this.Throughput,this.ByVertical,this.ResponseStatus}); EngineHealthResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Runs30 = json['Runs30']; Succeeded30 = json['Succeeded30']; Failed30 = json['Failed30']; Waiting = json['Waiting']; OpenErrorGroups = json['OpenErrorGroups']; AffectedRuns = json['AffectedRuns']; SlaBreaches = json['SlaBreaches']; Throughput = JsonConverters.fromJson(json['Throughput'],'List',context!); ByVertical = JsonConverters.fromJson(json['ByVertical'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Runs30': Runs30, 'Succeeded30': Succeeded30, 'Failed30': Failed30, 'Waiting': Waiting, 'OpenErrorGroups': OpenErrorGroups, 'AffectedRuns': AffectedRuns, 'SlaBreaches': SlaBreaches, 'Throughput': JsonConverters.toJson(Throughput,'List',context!), 'ByVertical': JsonConverters.toJson(ByVertical,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "EngineHealthResponse"; TypeContext? context = _ctx; } // @Route("/v1/engine/health", "GET,OPTIONS") class EngineHealthRequest implements IReturn, IConvertible, IGet { EngineHealthRequest(); EngineHealthRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => EngineHealthResponse(); getResponseTypeName() => "EngineHealthResponse"; getTypeName() => "EngineHealthRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'WorkflowThroughputView': TypeInfo(TypeOf.Class, create:() => WorkflowThroughputView()), 'WorkflowVerticalHealthView': TypeInfo(TypeOf.Class, create:() => WorkflowVerticalHealthView()), 'EngineHealthResponse': TypeInfo(TypeOf.Class, create:() => EngineHealthResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EngineHealthRequest': TypeInfo(TypeOf.Class, create:() => EngineHealthRequest()), });