def _entry_from_resource(self, resource, loggers):
        if 'textPayload' in resource:
            return TextEntry.from_api_repr(resource, self, loggers)
        elif 'jsonPayload' in resource:
            return StructEntry.from_api_repr(resource, self, loggers)
        elif 'protoPayload' in resource:
            return ProtobufEntry.from_api_repr(resource, self, loggers)
        raise ValueError('Cannot parse log entry resource')
Returns an object which is generated from a dict.
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/logging/client.py/Client._entry_from_resource--crossover with--dataset/ETHPy150Open osrg/ryu/ryu/ofproto/ofproto_v1_5_parser.py/OFPTableFeaturePropOxmValues.from_jsondict