/* Options: Date: 2025-10-27 22:21:04 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: SendMailRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; // @Route("/communication/sendmail", "POST") class SendMailRequest implements IConvertible, IPost { /** * Email address of sender. If it is not set the a default address will be used. */ // @ApiMember(Description="Email address of sender. If it is not set the a default address will be used.") String? FromAddress; /** * List of recipient email addresses */ // @ApiMember(Description="List of recipient email addresses", IsRequired=true) List? Recipients; /** * Email subject */ // @ApiMember(Description="Email subject", IsRequired=true) String? Subject; /** * Plain text body. Either this or HtmlBody is required */ // @ApiMember(Description="Plain text body. Either this or HtmlBody is required") String? Body; /** * Html body. Either this or Body is required */ // @ApiMember(Description="Html body. Either this or Body is required") String? HtmlBody; /** * Email attachments */ // @ApiMember(Description="Email attachments") List? Attachments; /** * Email attachments */ // @ApiMember(Description="Email attachments") List? AttachmentsObject; /** * Attachment streams */ // @ApiMember(Description="Attachment streams") List? AttachmentStreams; /** * Template substitutions */ // @ApiMember(Description="Template substitutions") Map? TemplateSubstitutions; /** * Template Id */ // @ApiMember(Description="Template Id") String? TemplateId; /** * List of BCC email addresses */ // @ApiMember(Description="List of BCC email addresses") List? Bcc; /** * List of CC email addresses */ // @ApiMember(Description="List of CC email addresses") List? Cc; SendMailRequest({this.FromAddress,this.Recipients,this.Subject,this.Body,this.HtmlBody,this.Attachments,this.AttachmentsObject,this.AttachmentStreams,this.TemplateSubstitutions,this.TemplateId,this.Bcc,this.Cc}); SendMailRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FromAddress = json['FromAddress']; Recipients = JsonConverters.fromJson(json['Recipients'],'List',context!); Subject = json['Subject']; Body = json['Body']; HtmlBody = json['HtmlBody']; Attachments = JsonConverters.fromJson(json['Attachments'],'List',context!); AttachmentsObject = JsonConverters.fromJson(json['AttachmentsObject'],'List',context!); AttachmentStreams = JsonConverters.fromJson(json['AttachmentStreams'],'List',context!); TemplateSubstitutions = JsonConverters.toStringMap(json['TemplateSubstitutions']); TemplateId = json['TemplateId']; Bcc = JsonConverters.fromJson(json['Bcc'],'List',context!); Cc = JsonConverters.fromJson(json['Cc'],'List',context!); return this; } Map toJson() => { 'FromAddress': FromAddress, 'Recipients': JsonConverters.toJson(Recipients,'List',context!), 'Subject': Subject, 'Body': Body, 'HtmlBody': HtmlBody, 'Attachments': JsonConverters.toJson(Attachments,'List',context!), 'AttachmentsObject': JsonConverters.toJson(AttachmentsObject,'List',context!), 'AttachmentStreams': JsonConverters.toJson(AttachmentStreams,'List',context!), 'TemplateSubstitutions': TemplateSubstitutions, 'TemplateId': TemplateId, 'Bcc': JsonConverters.toJson(Bcc,'List',context!), 'Cc': JsonConverters.toJson(Cc,'List',context!) }; getTypeName() => "SendMailRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'SendMailRequest': TypeInfo(TypeOf.Class, create:() => SendMailRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Attachment': TypeInfo(TypeOf.Class, create:() => Attachment()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AttachmentStream': TypeInfo(TypeOf.Class, create:() => AttachmentStream()), });