@classmethod
def from_dict(cls, d):
    """Load a Name from a dictionary."""
    nameparts = d['nameparts']
    name = cls(nameparts, d['authority'])
    if 'hybrid' in d:
        name.hybrid = d['hybrid']
    return name
