'Initialize the UserInstance
:returns: twilio.rest.notify.v1.service.user.UserInstance
:rtype: twilio.rest.notify.v1.service.user.UserInstance'

def __init__(self, version, payload, service_sid, identity=None):

    super(UserInstance, self).__init__(version)
    self._properties = {'sid': payload['sid'], 'account_sid': payload['account_sid'], 'service_sid': payload['service_sid'], 'identity': payload['identity'], 'date_created': deserialize.iso8601_datetime(payload['date_created']), 'date_updated': deserialize.iso8601_datetime(payload['date_updated']), 'segments': payload['segments'], 'url': payload['url'], 'links': payload['links']}
    self._context = None
    self._solution = {'service_sid': service_sid, 'identity': (identity or self._properties['identity'])}
