v1PublicKeyCredentialWithAttestation.fromJson constructor

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

Implementation

factory v1PublicKeyCredentialWithAttestation.fromJson(Map<String, dynamic> json) {
  final _id = json['id'] as String;
  final _type = json['type'] as String;
  final _rawId = json['rawId'] as String;
  final _authenticatorAttachment = json['authenticatorAttachment'] as String?;
  final _response = v1AuthenticatorAttestationResponse.fromJson(json['response'] as Map<String, dynamic>);
  final _clientExtensionResults = v1SimpleClientExtensionResults.fromJson(json['clientExtensionResults'] as Map<String, dynamic>);
  return v1PublicKeyCredentialWithAttestation(
    id: _id,
    type: _type,
    rawId: _rawId,
    authenticatorAttachment: _authenticatorAttachment,
    response: _response,
    clientExtensionResults: _clientExtensionResults,
  );
}