'Initialize the EventInstance
:returns: twilio.rest.taskrouter.v1.workspace.event.EventInstance
:rtype: twilio.rest.taskrouter.v1.workspace.event.EventInstance'

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

    super(EventInstance, self).__init__(version)
    self._properties = {'account_sid': payload['account_sid'], 'actor_sid': payload['actor_sid'], 'actor_type': payload['actor_type'], 'actor_url': payload['actor_url'], 'description': payload['description'], 'event_data': payload['event_data'], 'event_date': deserialize.iso8601_datetime(payload['event_date']), 'event_type': payload['event_type'], 'resource_sid': payload['resource_sid'], 'resource_type': payload['resource_type'], 'resource_url': payload['resource_url'], 'sid': payload['sid'], 'source': payload['source'], 'source_ip_address': payload['source_ip_address'], 'url': payload['url']}
    self._context = None
    self._solution = {'workspace_sid': workspace_sid, 'sid': (sid or self._properties['sid'])}
