code: def from_dict(self, values):
          
          for k in values.keys():
              setattr(self, k, values[k])
docs: Assign the values from the dict passed in. All items in the dict
          are assigned as attributes of the object.
  
          :param dict values: The dictionary of values to assign to this mapping