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,
if (backupEligibility != null) 'backupEligibility': backupEligibility,
if (backupState != null) 'backupState': backupState,
if (userName != null) 'userName': userName,
if (userDisplayName != null) 'userDisplayName': userDisplayName,
};
}