def decode_list_offset_response(cls, response):
        """
        Decode OffsetResponse_v2 into ListOffsetResponsePayloads

        Arguments:
            response: OffsetResponse_v2

        Returns: list of ListOffsetResponsePayloads
        """
        return [
            kafka.structs.ListOffsetResponsePayload(topic, partition, error, timestamp, offset)
            for topic, partitions in response.topics
            for partition, error, timestamp, offset in partitions
        ]
Decode OffsetResponse_v2 into ListOffsetResponsePayloads

        Arguments:
            response: OffsetResponse_v2

        Returns: list of ListOffsetResponsePayloads