'Initialize the UserInstance
:returns: twilio.rest.chat.v2.service.user.UserInstance
:rtype: twilio.rest.chat.v2.service.user.UserInstance'

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

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