TInitOtpAuthBody.fromJson constructor
TInitOtpAuthBody.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TInitOtpAuthBody.fromJson(Map<String, dynamic> json) {
final _timestampMs = json['timestampMs'] as String?;
final _organizationId = json['organizationId'] as String?;
final _otpType = json['otpType'] as String;
final _contact = json['contact'] as String;
final _otpLength = json['otpLength'] as num?;
final _emailCustomization = json['emailCustomization'] == null ? null : v1EmailCustomizationParams.fromJson(json['emailCustomization'] as Map<String, dynamic>);
final _smsCustomization = json['smsCustomization'] == null ? null : v1SmsCustomizationParams.fromJson(json['smsCustomization'] as Map<String, dynamic>);
final _userIdentifier = json['userIdentifier'] as String?;
final _sendFromEmailAddress = json['sendFromEmailAddress'] as String?;
final _alphanumeric = json['alphanumeric'] as bool?;
final _sendFromEmailSenderName = json['sendFromEmailSenderName'] as String?;
final _replyToEmailAddress = json['replyToEmailAddress'] as String?;
return TInitOtpAuthBody(
timestampMs: _timestampMs,
organizationId: _organizationId,
otpType: _otpType,
contact: _contact,
otpLength: _otpLength,
emailCustomization: _emailCustomization,
smsCustomization: _smsCustomization,
userIdentifier: _userIdentifier,
sendFromEmailAddress: _sendFromEmailAddress,
alphanumeric: _alphanumeric,
sendFromEmailSenderName: _sendFromEmailSenderName,
replyToEmailAddress: _replyToEmailAddress,
);
}