/* Options: Date: 2026-08-11 13:19:48 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: EngineTemplatesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkflowTemplateView implements IConvertible { String? TemplateKey; String? Name; String? Pack; List? Verticals = []; String? RefSourceKey; String? GraphJson; int? StepCount; int? Installs; String? Description; WorkflowTemplateView({this.TemplateKey,this.Name,this.Pack,this.Verticals,this.RefSourceKey,this.GraphJson,this.StepCount,this.Installs,this.Description}); WorkflowTemplateView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TemplateKey = json['TemplateKey']; Name = json['Name']; Pack = json['Pack']; Verticals = JsonConverters.fromJson(json['Verticals'],'List',context!); RefSourceKey = json['RefSourceKey']; GraphJson = json['GraphJson']; StepCount = json['StepCount']; Installs = json['Installs']; Description = json['Description']; return this; } Map toJson() => { 'TemplateKey': TemplateKey, 'Name': Name, 'Pack': Pack, 'Verticals': JsonConverters.toJson(Verticals,'List',context!), 'RefSourceKey': RefSourceKey, 'GraphJson': GraphJson, 'StepCount': StepCount, 'Installs': Installs, 'Description': Description }; getTypeName() => "WorkflowTemplateView"; TypeContext? context = _ctx; } class EngineTemplatesResponse implements IConvertible { List? Templates = []; ResponseStatus? ResponseStatus; EngineTemplatesResponse({this.Templates,this.ResponseStatus}); EngineTemplatesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Templates = JsonConverters.fromJson(json['Templates'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Templates': JsonConverters.toJson(Templates,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "EngineTemplatesResponse"; TypeContext? context = _ctx; } // @Route("/v1/engine/templates", "GET,OPTIONS") class EngineTemplatesRequest implements IReturn, IConvertible, IGet { EngineTemplatesRequest(); EngineTemplatesRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => EngineTemplatesResponse(); getResponseTypeName() => "EngineTemplatesResponse"; getTypeName() => "EngineTemplatesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'WorkflowTemplateView': TypeInfo(TypeOf.Class, create:() => WorkflowTemplateView()), 'EngineTemplatesResponse': TypeInfo(TypeOf.Class, create:() => EngineTemplatesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EngineTemplatesRequest': TypeInfo(TypeOf.Class, create:() => EngineTemplatesRequest()), });