'Initialize the InviteInstance
:returns: twilio.rest.chat.v1.service.channel.invite.InviteInstance
:rtype: twilio.rest.chat.v1.service.channel.invite.InviteInstance'

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

    super(InviteInstance, self).__init__(version)
    self._properties = {'sid': payload['sid'], 'account_sid': payload['account_sid'], 'channel_sid': payload['channel_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']), 'role_sid': payload['role_sid'], 'created_by': payload['created_by'], 'url': payload['url']}
    self._context = None
    self._solution = {'service_sid': service_sid, 'channel_sid': channel_sid, 'sid': (sid or self._properties['sid'])}
