@classmethod
def from_dict(cls, site_dict):
    """ The dictionary of the values for Site class. It is a function decorator, it creates the dictionary with the attributes that belong to the class method Site.

        :param site_dict: Dictionary that contains the attributes.
        :type site_dict: dict

        :return: Object that contains the values index, position, type_, mu, anisotropy_constant, anisotopy_axis and field_axis. 
        :rtype: dict
        """
    index = site_dict['index']
    position = site_dict['position']
    type_ = site_dict['type']
    mu = site_dict['mu']
    anisotropy_constant = site_dict['anisotropy_constant']
    anisotopy_axis = site_dict['anisotopy_axis']
    field_axis = site_dict['field_axis']
    return cls(index, position, type_, mu, anisotropy_constant,
        anisotopy_axis, field_axis)
