@classmethod
def create_from_apic_json(cls, data, parent):
    """
        create from the apic json

        :param data: json dictionary
        :param parent: parent object
        :return: object created from json dictionary
        """
    attributes = data['vzEntry']['attributes']
    if 'name' in attributes:
        name = str(attributes.get('name'))
    elif 'dn' in attributes:
        name = cls._get_name_from_dn(str(attributes.get('dn')))
    else:
        raise ValueError('Name not found in attributes')
    entry = cls(name=name, parent=parent)
    entry._populate_from_attributes(attributes)
    return entry
