toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json['otpType'] = otpType;
  _json['contact'] = contact;
  if (otpLength != null) {
    _json['otpLength'] = otpLength;
  }
  if (emailCustomization != null) {
    _json['emailCustomization'] = emailCustomization?.toJson();
  }
  if (smsCustomization != null) {
    _json['smsCustomization'] = smsCustomization?.toJson();
  }
  if (userIdentifier != null) {
    _json['userIdentifier'] = userIdentifier;
  }
  if (sendFromEmailAddress != null) {
    _json['sendFromEmailAddress'] = sendFromEmailAddress;
  }
  if (alphanumeric != null) {
    _json['alphanumeric'] = alphanumeric;
  }
  if (sendFromEmailSenderName != null) {
    _json['sendFromEmailSenderName'] = sendFromEmailSenderName;
  }
  if (expirationSeconds != null) {
    _json['expirationSeconds'] = expirationSeconds;
  }
  if (replyToEmailAddress != null) {
    _json['replyToEmailAddress'] = replyToEmailAddress;
  }
  return _json;
}