'Initialize the TaskInstance
:returns: twilio.rest.taskrouter.v1.workspace.task.TaskInstance
:rtype: twilio.rest.taskrouter.v1.workspace.task.TaskInstance'

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

    super(TaskInstance, self).__init__(version)
    self._properties = {'account_sid': payload['account_sid'], 'age': deserialize.integer(payload['age']), 'assignment_status': payload['assignment_status'], 'attributes': payload['attributes'], 'addons': payload['addons'], 'date_created': deserialize.iso8601_datetime(payload['date_created']), 'date_updated': deserialize.iso8601_datetime(payload['date_updated']), 'priority': deserialize.integer(payload['priority']), 'reason': payload['reason'], 'sid': payload['sid'], 'task_queue_sid': payload['task_queue_sid'], 'task_queue_friendly_name': payload['task_queue_friendly_name'], 'task_channel_sid': payload['task_channel_sid'], 'task_channel_unique_name': payload['task_channel_unique_name'], 'timeout': deserialize.integer(payload['timeout']), 'workflow_sid': payload['workflow_sid'], 'workflow_friendly_name': payload['workflow_friendly_name'], 'workspace_sid': payload['workspace_sid'], 'url': payload['url'], 'links': payload['links']}
    self._context = None
    self._solution = {'workspace_sid': workspace_sid, 'sid': (sid or self._properties['sid'])}
