@classmethod
def create_from_import(cls, data):
    """
        Create a new instance of the model based on data that comes from the Zou
        API.
        """
    if 'type' in data:
        del data['type']
    previous_data = cls.get(data['id'])
    if previous_data is None:
        return cls.create(**data)
    else:
        previous_data.update(data)
        return previous_data
