toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final configurationSet = this.configurationSet;
  final emailSendingAccount = this.emailSendingAccount;
  final from = this.from;
  final replyToEmailAddress = this.replyToEmailAddress;
  final sourceArn = this.sourceArn;
  return {
    if (configurationSet != null) 'ConfigurationSet': configurationSet,
    if (emailSendingAccount != null)
      'EmailSendingAccount': emailSendingAccount.toValue(),
    if (from != null) 'From': from,
    if (replyToEmailAddress != null)
      'ReplyToEmailAddress': replyToEmailAddress,
    if (sourceArn != null) 'SourceArn': sourceArn,
  };
}