Added operator setting in from_dict and from_obj