/* Options: Date: 2026-11-22 21:35:25 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: FormAutomationToggleRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FormAutomationWriteResponse implements IConvertible { int? WorkflowId; String? Message; String? Note; ResponseStatus? ResponseStatus; FormAutomationWriteResponse({this.WorkflowId,this.Message,this.Note,this.ResponseStatus}); FormAutomationWriteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WorkflowId = json['WorkflowId']; Message = json['Message']; Note = json['Note']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'WorkflowId': WorkflowId, 'Message': Message, 'Note': Note, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormAutomationWriteResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/{FormUID}/automations/{WorkflowId}/switch", "POST") class FormAutomationToggleRequest implements IReturn, IConvertible, IPost { String? FormUID; int? WorkflowId; bool? On; FormAutomationToggleRequest({this.FormUID,this.WorkflowId,this.On}); FormAutomationToggleRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormUID = json['FormUID']; WorkflowId = json['WorkflowId']; On = json['On']; return this; } Map toJson() => { 'FormUID': FormUID, 'WorkflowId': WorkflowId, 'On': On }; createResponse() => FormAutomationWriteResponse(); getResponseTypeName() => "FormAutomationWriteResponse"; getTypeName() => "FormAutomationToggleRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormAutomationWriteResponse': TypeInfo(TypeOf.Class, create:() => FormAutomationWriteResponse()), 'FormAutomationToggleRequest': TypeInfo(TypeOf.Class, create:() => FormAutomationToggleRequest()), });