toJson method
Converts this instance to a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
'challenge': challenge,
'rpId': relyingPartyId,
'timeout': ?timeout,
if (allowCredentials != null && allowCredentials!.isNotEmpty)
'allowCredentials': allowCredentials!.map((e) => e.toJson()).toList(),
'userVerification': ?userVerification,
if (prf != null)
'extensions': {
'prf': {
'eval': {'first': prf},
},
},
};
}