def _from_dict(cls, _dict):
        """Initialize a Parties object from a json dictionary."""
        args = {}
        if 'party' in _dict:
            args['party'] = _dict.get('party')
        if 'importance' in _dict:
            args['importance'] = _dict.get('importance')
        if 'role' in _dict:
            args['role'] = _dict.get('role')
        if 'addresses' in _dict:
            args['addresses'] = [
                Address._from_dict(x) for x in (_dict.get('addresses'))
            ]
        if 'contacts' in _dict:
            args['contacts'] = [
                Contact._from_dict(x) for x in (_dict.get('contacts'))
            ]
        return cls(**args)
Initialize a Parties object from a json dictionary.