toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final body = this.body;
  final feedbackForwardingAddress = this.feedbackForwardingAddress;
  final fromAddress = this.fromAddress;
  final rawEmail = this.rawEmail;
  final replyToAddresses = this.replyToAddresses;
  final simpleEmail = this.simpleEmail;
  final substitutions = this.substitutions;
  return {
    if (body != null) 'Body': body,
    if (feedbackForwardingAddress != null)
      'FeedbackForwardingAddress': feedbackForwardingAddress,
    if (fromAddress != null) 'FromAddress': fromAddress,
    if (rawEmail != null) 'RawEmail': rawEmail,
    if (replyToAddresses != null) 'ReplyToAddresses': replyToAddresses,
    if (simpleEmail != null) 'SimpleEmail': simpleEmail,
    if (substitutions != null) 'Substitutions': substitutions,
  };
}