toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json['email'] = email;
  _json['targetPublicKey'] = targetPublicKey;
  if (apiKeyName != null) {
    _json['apiKeyName'] = apiKeyName;
  }
  if (expirationSeconds != null) {
    _json['expirationSeconds'] = expirationSeconds;
  }
  if (emailCustomization != null) {
    _json['emailCustomization'] = emailCustomization?.toJson();
  }
  if (invalidateExisting != null) {
    _json['invalidateExisting'] = invalidateExisting;
  }
  if (sendFromEmailAddress != null) {
    _json['sendFromEmailAddress'] = sendFromEmailAddress;
  }
  if (sendFromEmailSenderName != null) {
    _json['sendFromEmailSenderName'] = sendFromEmailSenderName;
  }
  if (replyToEmailAddress != null) {
    _json['replyToEmailAddress'] = replyToEmailAddress;
  }
  return _json;
}