AllowCredentials.fromJson constructor

AllowCredentials.fromJson(
  1. dynamic json
)

Implementation

factory AllowCredentials.fromJson(dynamic json) {
  return AllowCredentials(
    List<PublicKeyCredentialDescriptor>.from(json['webauthn']
        .map((e) => PublicKeyCredentialDescriptor.fromJson(e))),
    List<PublicKeyCredentialDescriptor>.from(
        json['key'].map((e) => PublicKeyCredentialDescriptor.fromJson(e))),
  );
}