copyWith method
MarketingMessageDTO
copyWith({ - int? id,
- MarketingMessageTypeDTO? messageType,
- MarketingMessageTargetDTO? target,
- List<String>? ccEmails,
- List<String>? bccEmails,
- String? subject,
- String? plainTextBody,
- DateTime? creationTimestamp,
- bool? isSent,
- String? senderEmail,
- DateTime? sentTimestamp,
})
Implementation
MarketingMessageDTO copyWith(
{int? id,
enums.MarketingMessageTypeDTO? messageType,
enums.MarketingMessageTargetDTO? target,
List<String>? ccEmails,
List<String>? bccEmails,
String? subject,
String? plainTextBody,
DateTime? creationTimestamp,
bool? isSent,
String? senderEmail,
DateTime? sentTimestamp}) {
return MarketingMessageDTO(
id: id ?? this.id,
messageType: messageType ?? this.messageType,
target: target ?? this.target,
ccEmails: ccEmails ?? this.ccEmails,
bccEmails: bccEmails ?? this.bccEmails,
subject: subject ?? this.subject,
plainTextBody: plainTextBody ?? this.plainTextBody,
creationTimestamp: creationTimestamp ?? this.creationTimestamp,
isSent: isSent ?? this.isSent,
senderEmail: senderEmail ?? this.senderEmail,
sentTimestamp: sentTimestamp ?? this.sentTimestamp);
}