v1AuthenticatorParams.fromJson constructor

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

Implementation

factory v1AuthenticatorParams.fromJson(Map<String, dynamic> json) {
  final _authenticatorName = json['authenticatorName'] as String;
  final _userId = json['userId'] as String;
  final _attestation = v1PublicKeyCredentialWithAttestation.fromJson(json['attestation'] as Map<String, dynamic>);
  final _challenge = json['challenge'] as String;
  return v1AuthenticatorParams(
    authenticatorName: _authenticatorName,
    userId: _userId,
    attestation: _attestation,
    challenge: _challenge,
  );
}