toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'credentialId': credentialId,
'isResidentCredential': isResidentCredential,
'privateKey': privateKey,
'signCount': signCount,
if (rpId != null) 'rpId': rpId,
if (userHandle != null) 'userHandle': userHandle,
if (largeBlob != null) 'largeBlob': largeBlob,
};
}