Serializes this as a JSON object.
this
@override Map<String, Object?> toJson() => { 'sharedSecret': sharedSecret, 'username': _username, };