toMap method
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'challenge': challenge,
'extensions': extensions,
'timeoutSeconds': timeoutSeconds,
'rp': rp != null ? rp!.toMap() : null,
'user': user != null ? user!.toMap() : null,
'tokenBinding': tokenBinding != null ? tokenBinding!.toMap() : null,
'options':
nativeFido2Options != null ? nativeFido2Options!.toMap() : null,
'excludeList': excludeList != null
? excludeList!
.map((PublicKeyCredentialDescriptor e) => e.toMap())
.toList()
: null,
'authenticatorSelection': authenticatorSelection != null
? authenticatorSelection!.toMap()
: null,
'pubKeyCredParams': pubKeyCredParams != null
? pubKeyCredParams!
.map((PublicKeyCredentialParameters e) => e.toMap())
.toList()
: null,
'attestation': attestation != null ? describeEnum(attestation!) : null
};
}