TotpSetupDetails.fromJson constructor

TotpSetupDetails.fromJson(
  1. Map<String, Object?> json
)

The TOTP secret code and QR code, used to set up an authenticator for TOTP MFA.

Implementation

factory TotpSetupDetails.fromJson(Map<String, Object?> json) {
  return TotpSetupDetails(
    sharedSecret: json['sharedSecret'] as String,
    username: json['username'] as String,
  );
}