Converts instance to a string.
instance
@override String encodeString(T instance) { return encodeJsonTree(instance); }