@classmethod
def from_string(cls, wf: str, validate: bool=True) ->'Workflow':
    """Create a Workflow from a YAML string."""
    body = {'data': wf}
    return cls.__deserialize(body, validate=validate)
