'Decode OffsetFetchResponse to OffsetFetchResponsePayloads
Arguments:
response: OffsetFetchResponse'

@classmethod
def decode_offset_fetch_response(cls, response):

    return [kafka.structs.OffsetFetchResponsePayload(topic, partition, offset, metadata, error) for (topic, partitions) in response.topics for (partition, offset, metadata, error) in partitions]
