def decode_offset_fetch_response(cls, response):
        """
        Decode OffsetFetchResponse to OffsetFetchResponsePayloads

        Arguments:
            response: OffsetFetchResponse
        """
        return [
            kafka.structs.OffsetFetchResponsePayload(
                topic, partition, offset, metadata, error
            )
            for topic, partitions in response.topics
            for partition, offset, metadata, error in partitions
        ]
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 ]
Decode OffsetFetchResponse to OffsetFetchResponsePayloads

        Arguments:
            response: OffsetFetchResponse