UserRegistrationChallenge.fromJson constructor

UserRegistrationChallenge.fromJson(
  1. dynamic json
)

Implementation

factory UserRegistrationChallenge.fromJson(dynamic json) {
  return UserRegistrationChallenge(
    json['temporaryAuthenticationToken'] as String,
    RelyingParty.fromJson(json['rp']),
    UserInformation.fromJson(json['user']),
    SupportedCredentialKinds.fromJson(json['supportedCredentialKinds']),
    json['otpUrl'] as String,
    json['challenge'] as String,
    AuthenticatorSelectionCriteria.fromJson(json['authenticatorSelection']),
    json['attestation'] as String,
    List<PublicKeyCredentialParameters>.from(json['pubKeyCredParams']
        .map((e) => PublicKeyCredentialParameters.fromJson(e))),
    List<PublicKeyCredentialDescriptor>.from(json['excludeCredentials']
        .map((e) => PublicKeyCredentialDescriptor.fromJson(e))),
  );
}