/* Options: Date: 2025-10-27 22:29:21 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: GetCampaignActionFiles.* //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 CampaignActionFile implements IConvertible { String? Name; String? FileType; String? FileSize; String? Extension; String? UploadUrl; CampaignActionFile({this.Name,this.FileType,this.FileSize,this.Extension,this.UploadUrl}); CampaignActionFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; FileType = json['FileType']; FileSize = json['FileSize']; Extension = json['Extension']; UploadUrl = json['UploadUrl']; return this; } Map toJson() => { 'Name': Name, 'FileType': FileType, 'FileSize': FileSize, 'Extension': Extension, 'UploadUrl': UploadUrl }; getTypeName() => "CampaignActionFile"; TypeContext? context = _ctx; } class CampaignActionsView implements IConvertible { // @DataMember(Order=1) // @Required() int? Id; // @DataMember(Order=2) // @Required() // @References(typeof(Campaigns)) int? CampaignsId; // @DataMember(Order=3) // @References(typeof(Actions)) int? ActionsId; // @DataMember(Order=4) String? ButtonName; // @DataMember(Order=5) // @References(typeof(ActionTypes)) int? ActionTypesId; // @DataMember(Order=6) String? Description; // @DataMember(Order=7) int? OfferOrder; // @DataMember(Order=8) bool? StandOut; // @DataMember(Order=9) // @Required() String? PublicAccessGuid; // @DataMember(Order=10) bool? IsPayment; // @DataMember(Order=11) bool? IsPayOff; // @DataMember(Order=12) bool? IsEnabled; CampaignActionsView({this.Id,this.CampaignsId,this.ActionsId,this.ButtonName,this.ActionTypesId,this.Description,this.OfferOrder,this.StandOut,this.PublicAccessGuid,this.IsPayment,this.IsPayOff,this.IsEnabled}); CampaignActionsView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CampaignsId = json['CampaignsId']; ActionsId = json['ActionsId']; ButtonName = json['ButtonName']; ActionTypesId = json['ActionTypesId']; Description = json['Description']; OfferOrder = json['OfferOrder']; StandOut = json['StandOut']; PublicAccessGuid = json['PublicAccessGuid']; IsPayment = json['IsPayment']; IsPayOff = json['IsPayOff']; IsEnabled = json['IsEnabled']; return this; } Map toJson() => { 'Id': Id, 'CampaignsId': CampaignsId, 'ActionsId': ActionsId, 'ButtonName': ButtonName, 'ActionTypesId': ActionTypesId, 'Description': Description, 'OfferOrder': OfferOrder, 'StandOut': StandOut, 'PublicAccessGuid': PublicAccessGuid, 'IsPayment': IsPayment, 'IsPayOff': IsPayOff, 'IsEnabled': IsEnabled }; getTypeName() => "CampaignActionsView"; TypeContext? context = _ctx; } class Campaigns implements IConvertible { // @DataMember(Order=1) // @Required() int? Id; // @DataMember(Order=2) // @Required() int? TenantsId; // @DataMember(Order=3) // @Required() String? Name; // @DataMember(Order=4) // @Required() String? Description; // @DataMember(Order=5) // @References(typeof(Avatars)) int? AvatarsId; // @DataMember(Order=6) // @References(typeof(Schedules)) int? SchedulesId; // @DataMember(Order=7) // @References(typeof(MessageTones)) int? MessageTonesId; // @DataMember(Order=8) // @Required() // @References(typeof(StatusCodes)) int? StatusCodesId; // @DataMember(Order=9) // @Required() String? PublicAccessGuid; // @DataMember(Order=10) String? ViewHeading; // @DataMember(Order=11) List? CampaignActions; Campaigns({this.Id,this.TenantsId,this.Name,this.Description,this.AvatarsId,this.SchedulesId,this.MessageTonesId,this.StatusCodesId,this.PublicAccessGuid,this.ViewHeading,this.CampaignActions}); Campaigns.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; TenantsId = json['TenantsId']; Name = json['Name']; Description = json['Description']; AvatarsId = json['AvatarsId']; SchedulesId = json['SchedulesId']; MessageTonesId = json['MessageTonesId']; StatusCodesId = json['StatusCodesId']; PublicAccessGuid = json['PublicAccessGuid']; ViewHeading = json['ViewHeading']; CampaignActions = JsonConverters.fromJson(json['CampaignActions'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'TenantsId': TenantsId, 'Name': Name, 'Description': Description, 'AvatarsId': AvatarsId, 'SchedulesId': SchedulesId, 'MessageTonesId': MessageTonesId, 'StatusCodesId': StatusCodesId, 'PublicAccessGuid': PublicAccessGuid, 'ViewHeading': ViewHeading, 'CampaignActions': JsonConverters.toJson(CampaignActions,'List',context!) }; getTypeName() => "Campaigns"; TypeContext? context = _ctx; } class CampaignActions implements IConvertible { // @DataMember(Order=1) // @Required() int? Id; // @DataMember(Order=2) // @Required() // @References(typeof(Campaigns)) int? CampaignsId; // @DataMember(Order=3) // @References(typeof(Actions)) int? ActionsId; // @DataMember(Order=4) String? ButtonName; // @DataMember(Order=5) // @References(typeof(ActionTypes)) int? ActionTypesId; // @DataMember(Order=6) String? Description; // @DataMember(Order=7) int? OfferOrder; // @DataMember(Order=8) bool? StandOut; // @DataMember(Order=9) // @Required() String? PublicAccessGuid; // @DataMember(Order=10) List? FormMeta; // @DataMember(Order=11) List? Files; // @DataMember(Order=12) String? SentToEmailAddress; // @DataMember(Order=13) String? CcEmailAddress; CampaignActions({this.Id,this.CampaignsId,this.ActionsId,this.ButtonName,this.ActionTypesId,this.Description,this.OfferOrder,this.StandOut,this.PublicAccessGuid,this.FormMeta,this.Files,this.SentToEmailAddress,this.CcEmailAddress}); CampaignActions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CampaignsId = json['CampaignsId']; ActionsId = json['ActionsId']; ButtonName = json['ButtonName']; ActionTypesId = json['ActionTypesId']; Description = json['Description']; OfferOrder = json['OfferOrder']; StandOut = json['StandOut']; PublicAccessGuid = json['PublicAccessGuid']; FormMeta = JsonConverters.fromJson(json['FormMeta'],'List',context!); Files = JsonConverters.fromJson(json['Files'],'List',context!); SentToEmailAddress = json['SentToEmailAddress']; CcEmailAddress = json['CcEmailAddress']; return this; } Map toJson() => { 'Id': Id, 'CampaignsId': CampaignsId, 'ActionsId': ActionsId, 'ButtonName': ButtonName, 'ActionTypesId': ActionTypesId, 'Description': Description, 'OfferOrder': OfferOrder, 'StandOut': StandOut, 'PublicAccessGuid': PublicAccessGuid, 'FormMeta': JsonConverters.toJson(FormMeta,'List',context!), 'Files': JsonConverters.toJson(Files,'List',context!), 'SentToEmailAddress': SentToEmailAddress, 'CcEmailAddress': CcEmailAddress }; getTypeName() => "CampaignActions"; TypeContext? context = _ctx; } // @Route("/campaign/actions/files", "GET") class GetCampaignActionFiles implements IReturn, IConvertible, IGet { // @DataMember(Order=1) // @Validate(Validator="NotNull") int? CampaignsId; int? CampaignActionsId; GetCampaignActionFiles({this.CampaignsId,this.CampaignActionsId}); GetCampaignActionFiles.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CampaignsId = json['CampaignsId']; CampaignActionsId = json['CampaignActionsId']; return this; } Map toJson() => { 'CampaignsId': CampaignsId, 'CampaignActionsId': CampaignActionsId }; createResponse() => CampaignActions(); getResponseTypeName() => "CampaignActions"; getTypeName() => "GetCampaignActionFiles"; 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:() => []), 'CampaignActionFile': TypeInfo(TypeOf.Class, create:() => CampaignActionFile()), 'CampaignActionsView': TypeInfo(TypeOf.Class, create:() => CampaignActionsView()), 'Campaigns': TypeInfo(TypeOf.Class, create:() => Campaigns()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CampaignActions': TypeInfo(TypeOf.Class, create:() => CampaignActions()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCampaignActionFiles': TypeInfo(TypeOf.Class, create:() => GetCampaignActionFiles()), });