Used to encode an object not directly encodable into some JSON data.
typedef ToEncodable = Object? Function(Object? nonEncodable);