{"additionalProperties": false, "type": "object", "anyOf": [{"not": {"required": ["toBest", "exclude"]}, "required": ["from", "to"]}, {"not": {"required": ["to"]}, "required": ["from", "toBest"]}], "properties": {"units": {"type": "boolean"}, "exclude": {"items": {"type": "string", "examples": ["m", "g"]}, "type": "array"}, "toBest": {"type": "boolean"}, "from": {"type": "string", "examples": ["m", "g"]}, "to": {"type": "string", "examples": ["m", "g"]}}}