serialization of FetchResponse, OffsetResponse and ProduceResponse