v1AuthenticatorAttestationResponse.fromJson constructor
v1AuthenticatorAttestationResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory v1AuthenticatorAttestationResponse.fromJson(Map<String, dynamic> json) {
final _clientDataJson = json['clientDataJson'] as String;
final _attestationObject = json['attestationObject'] as String;
final _transports = (json['transports'] as List?)?.map((e) => v1AuthenticatorTransportFromJson(e)).toList();
final _authenticatorAttachment = json['authenticatorAttachment'] as String?;
return v1AuthenticatorAttestationResponse(
clientDataJson: _clientDataJson,
attestationObject: _attestationObject,
transports: _transports,
authenticatorAttachment: _authenticatorAttachment,
);
}