Converts an object to a JSON-encodable format. This method is used by the JSON encoder to convert objects to JSON.
static Object? toEncodable(Object? object) => _toEncodable(object, false);