'Decode OffsetResponse_v2 into ListOffsetResponsePayloads
Arguments:
response: OffsetResponse_v2
Returns: list of ListOffsetResponsePayloads'

@classmethod
def decode_list_offset_response(cls, response):

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