/* Options: Date: 2026-11-22 21:35:19 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: FormAutomationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FormAutomationRule implements IConvertible { int? WorkflowId; String? Name; String? Sentence; String? State; String? StateText; String? Numbers; String? Warn; bool? AnyApplication; bool? AlsoOthers; String? SharedText; bool? FromStarter; String? EngineLink; FormAutomationRule({this.WorkflowId,this.Name,this.Sentence,this.State,this.StateText,this.Numbers,this.Warn,this.AnyApplication,this.AlsoOthers,this.SharedText,this.FromStarter,this.EngineLink}); FormAutomationRule.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WorkflowId = json['WorkflowId']; Name = json['Name']; Sentence = json['Sentence']; State = json['State']; StateText = json['StateText']; Numbers = json['Numbers']; Warn = json['Warn']; AnyApplication = json['AnyApplication']; AlsoOthers = json['AlsoOthers']; SharedText = json['SharedText']; FromStarter = json['FromStarter']; EngineLink = json['EngineLink']; return this; } Map toJson() => { 'WorkflowId': WorkflowId, 'Name': Name, 'Sentence': Sentence, 'State': State, 'StateText': StateText, 'Numbers': Numbers, 'Warn': Warn, 'AnyApplication': AnyApplication, 'AlsoOthers': AlsoOthers, 'SharedText': SharedText, 'FromStarter': FromStarter, 'EngineLink': EngineLink }; getTypeName() => "FormAutomationRule"; TypeContext? context = _ctx; } class FormAutomationStarter implements IConvertible { String? Key; String? Name; String? Text; bool? Added; FormAutomationStarter({this.Key,this.Name,this.Text,this.Added}); FormAutomationStarter.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Name = json['Name']; Text = json['Text']; Added = json['Added']; return this; } Map toJson() => { 'Key': Key, 'Name': Name, 'Text': Text, 'Added': Added }; getTypeName() => "FormAutomationStarter"; TypeContext? context = _ctx; } class FormMappingRow implements IConvertible { String? Field; String? FieldKey; String? Target; String? Tone; String? Note; FormMappingRow({this.Field,this.FieldKey,this.Target,this.Tone,this.Note}); FormMappingRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Field = json['Field']; FieldKey = json['FieldKey']; Target = json['Target']; Tone = json['Tone']; Note = json['Note']; return this; } Map toJson() => { 'Field': Field, 'FieldKey': FieldKey, 'Target': Target, 'Tone': Tone, 'Note': Note }; getTypeName() => "FormMappingRow"; TypeContext? context = _ctx; } class FormAutomationsResponse implements IConvertible { List? Rules = []; List? Starters = []; List? Mapping = []; String? MapSummary; bool? CanAdd; String? AddRefusal; bool? CanToggle; bool? CanRemove; bool? CanOpenEngine; List? ReservedKeys = []; List? TestableFields = []; ResponseStatus? ResponseStatus; FormAutomationsResponse({this.Rules,this.Starters,this.Mapping,this.MapSummary,this.CanAdd,this.AddRefusal,this.CanToggle,this.CanRemove,this.CanOpenEngine,this.ReservedKeys,this.TestableFields,this.ResponseStatus}); FormAutomationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Rules = JsonConverters.fromJson(json['Rules'],'List',context!); Starters = JsonConverters.fromJson(json['Starters'],'List',context!); Mapping = JsonConverters.fromJson(json['Mapping'],'List',context!); MapSummary = json['MapSummary']; CanAdd = json['CanAdd']; AddRefusal = json['AddRefusal']; CanToggle = json['CanToggle']; CanRemove = json['CanRemove']; CanOpenEngine = json['CanOpenEngine']; ReservedKeys = JsonConverters.fromJson(json['ReservedKeys'],'List',context!); TestableFields = JsonConverters.fromJson(json['TestableFields'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Rules': JsonConverters.toJson(Rules,'List',context!), 'Starters': JsonConverters.toJson(Starters,'List',context!), 'Mapping': JsonConverters.toJson(Mapping,'List',context!), 'MapSummary': MapSummary, 'CanAdd': CanAdd, 'AddRefusal': AddRefusal, 'CanToggle': CanToggle, 'CanRemove': CanRemove, 'CanOpenEngine': CanOpenEngine, 'ReservedKeys': JsonConverters.toJson(ReservedKeys,'List',context!), 'TestableFields': JsonConverters.toJson(TestableFields,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormAutomationsResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/{FormUID}/automations", "GET") class FormAutomationsRequest implements IReturn, IConvertible, IGet { String? FormUID; FormAutomationsRequest({this.FormUID}); FormAutomationsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormUID = json['FormUID']; return this; } Map toJson() => { 'FormUID': FormUID }; createResponse() => FormAutomationsResponse(); getResponseTypeName() => "FormAutomationsResponse"; getTypeName() => "FormAutomationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormAutomationRule': TypeInfo(TypeOf.Class, create:() => FormAutomationRule()), 'FormAutomationStarter': TypeInfo(TypeOf.Class, create:() => FormAutomationStarter()), 'FormMappingRow': TypeInfo(TypeOf.Class, create:() => FormMappingRow()), 'FormAutomationsResponse': TypeInfo(TypeOf.Class, create:() => FormAutomationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormAutomationsRequest': TypeInfo(TypeOf.Class, create:() => FormAutomationsRequest()), });