@classmethod
def construct_from(cls, values, klass_name=None):
    """
        Creates an instance of the class from a dictionary

        :param values: Object returned by the API
        :type values: dict
        :param klass_name: Used from ListObject to convert the objects to the specified type.
        :type klass_name: str
        :return: instance
        :rtype: PianoObject
        """
    instance = cls(values.get(cls.id_map), klass_name=klass_name)
    instance.refresh_from(values, klass_name)
    return instance
