Converts the credential to a JSON representation.
Returns a JSON-encoded string representing the credential.
@override String toJson() => _credential.toJson();