copyWithWrapped method

MarketingMessageUpsertV3Body copyWithWrapped({
  1. Wrapped<MarketingMessageTypeDTO?>? messageType,
  2. Wrapped<MarketingMessageTargetDTO?>? target,
  3. Wrapped<List<String>?>? ccEmails,
  4. Wrapped<List<String>?>? bccEmails,
  5. Wrapped<String?>? subject,
  6. Wrapped<String?>? plainTextBody,
})

Implementation

MarketingMessageUpsertV3Body copyWithWrapped(
    {Wrapped<enums.MarketingMessageTypeDTO?>? messageType,
    Wrapped<enums.MarketingMessageTargetDTO?>? target,
    Wrapped<List<String>?>? ccEmails,
    Wrapped<List<String>?>? bccEmails,
    Wrapped<String?>? subject,
    Wrapped<String?>? plainTextBody}) {
  return MarketingMessageUpsertV3Body(
      messageType:
          (messageType != null ? messageType.value : this.messageType),
      target: (target != null ? target.value : this.target),
      ccEmails: (ccEmails != null ? ccEmails.value : this.ccEmails),
      bccEmails: (bccEmails != null ? bccEmails.value : this.bccEmails),
      subject: (subject != null ? subject.value : this.subject),
      plainTextBody:
          (plainTextBody != null ? plainTextBody.value : this.plainTextBody));
}