v1Attestation.fromJson constructor

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

Implementation

factory v1Attestation.fromJson(Map<String, dynamic> json) {
  final _credentialId = json['credentialId'] as String;
  final _clientDataJson = json['clientDataJson'] as String;
  final _attestationObject = json['attestationObject'] as String;
  final _transports = (json['transports'] as List).map((e) => v1AuthenticatorTransportFromJson(e)).toList();
  return v1Attestation(
    credentialId: _credentialId,
    clientDataJson: _clientDataJson,
    attestationObject: _attestationObject,
    transports: _transports,
  );
}