class Protocol::HTTP::Body::Wrapper

def as_json(...)

@returns [Hash] The body as a hash.

Convert the body to a hash suitable for serialization.
def as_json(...)
	{
		class: self.class.name,
		body: @body&.as_json
	}
end