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