TotpSetupDetails.fromJson constructor
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,
);
}