<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_value(value):
 """ Creates a new Parameters object filled with key-value pairs from specified object. :param value: an object with key-value pairs used to initialize a new Parameters. :return: a new Parameters object. """

        map = value if isinstance(value, dict) else RecursiveObjectReader.get_properties(value)
        return Parameters(map)