factor_agent.candidate.Candidate.from_dict# classmethod Candidate.from_dict(item, mechanism_types)[source]# Build a candidate from the proposer’s JSON object, whose type must be one of mechanism_types. Raises: ValueErrorIf a field is missing or extra, mechanism_type is not one of mechanism_types, or a field is not a string.