v1VerifyOtpIntent.fromJson constructor

v1VerifyOtpIntent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory v1VerifyOtpIntent.fromJson(Map<String, dynamic> json) {
  final _otpId = json['otpId'] as String;
  final _otpCode = json['otpCode'] as String;
  final _expirationSeconds = json['expirationSeconds'] as String?;
  final _publicKey = json['publicKey'] as String?;
  return v1VerifyOtpIntent(
    otpId: _otpId,
    otpCode: _otpCode,
    expirationSeconds: _expirationSeconds,
    publicKey: _publicKey,
  );
}