convert

open override fun convert(value: Any): RequestBody(source)

Converts a GraphQLOperationRequest into a JSON request body.

Return

The serialized JSON RequestBody.

Parameters

value

The request body object. Must be a GraphQLOperationRequest; any other type fails with IllegalArgumentException.

Throws