/* Options: Date: 2025-10-28 00:55:53 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SetCampaignActionForm.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; class FormFieldOption implements IConvertible { String? Value; String? Label; FormFieldOption({this.Value,this.Label}); FormFieldOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Value = json['Value']; Label = json['Label']; return this; } Map toJson() => { 'Value': Value, 'Label': Label }; getTypeName() => "FormFieldOption"; TypeContext? context = _ctx; } class FormField implements IConvertible { int? Id; String? ControlType; String? Label; String? Placeholder; String? Help; String? Name; int? SortOrder; List? Options; List? Validation; FormField({this.Id,this.ControlType,this.Label,this.Placeholder,this.Help,this.Name,this.SortOrder,this.Options,this.Validation}); FormField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; ControlType = json['ControlType']; Label = json['Label']; Placeholder = json['Placeholder']; Help = json['Help']; Name = json['Name']; SortOrder = json['SortOrder']; Options = JsonConverters.fromJson(json['Options'],'List',context!); Validation = JsonConverters.fromJson(json['Validation'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'ControlType': ControlType, 'Label': Label, 'Placeholder': Placeholder, 'Help': Help, 'Name': Name, 'SortOrder': SortOrder, 'Options': JsonConverters.toJson(Options,'List',context!), 'Validation': JsonConverters.toJson(Validation,'List',context!) }; getTypeName() => "FormField"; TypeContext? context = _ctx; } class SetCampaignActionFormResponse implements IConvertible { bool? Status; ResponseStatus? ResponseStatus; SetCampaignActionFormResponse({this.Status,this.ResponseStatus}); SetCampaignActionFormResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = json['Status']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Status': Status, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SetCampaignActionFormResponse"; TypeContext? context = _ctx; } // @Route("/campaign/actionform", "PUT") class SetCampaignActionForm implements IReturn, IConvertible, IPut { // @DataMember(Order=1) // @Validate(Validator="NotNull") int? CampaignsId; int? CampaignActionsId; List? FormMeta; SetCampaignActionForm({this.CampaignsId,this.CampaignActionsId,this.FormMeta}); SetCampaignActionForm.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CampaignsId = json['CampaignsId']; CampaignActionsId = json['CampaignActionsId']; FormMeta = JsonConverters.fromJson(json['FormMeta'],'List',context!); return this; } Map toJson() => { 'CampaignsId': CampaignsId, 'CampaignActionsId': CampaignActionsId, 'FormMeta': JsonConverters.toJson(FormMeta,'List',context!) }; createResponse() => SetCampaignActionFormResponse(); getResponseTypeName() => "SetCampaignActionFormResponse"; getTypeName() => "SetCampaignActionForm"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'FormFieldOption': TypeInfo(TypeOf.Class, create:() => FormFieldOption()), 'FormField': TypeInfo(TypeOf.Class, create:() => FormField()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SetCampaignActionFormResponse': TypeInfo(TypeOf.Class, create:() => SetCampaignActionFormResponse()), 'SetCampaignActionForm': TypeInfo(TypeOf.Class, create:() => SetCampaignActionForm()), 'List': TypeInfo(TypeOf.Class, create:() => []), });