toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'address': address,
'salt': salt,
'publicKey': publicKey,
'enc-alg': 'aes-256-gcm',
'hash': hash,
'algorithm': encryptedKey.algorithm.label,
'parameters': encryptedKey.parameters,
'key': Convert.bytesToBase64(encryptedKey.raw),
'scrypt': encryptedKey.scrypt
};