The callback definition for encoding a JSON object.
typedef JsonEncodeCallback = FutureOr<String> Function(Object);