def __init__(self, version, payload, flow_sid, sid=None):
        """
        Initialize the EngagementInstance

        :returns: twilio.rest.studio.v1.flow.engagement.EngagementInstance
        :rtype: twilio.rest.studio.v1.flow.engagement.EngagementInstance
        """
        super(EngagementInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'account_sid': payload['account_sid'],
            'flow_sid': payload['flow_sid'],
            'contact_sid': payload['contact_sid'],
            'contact_channel_address': payload['contact_channel_address'],
            'context': payload['context'],
            'status': payload['status'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'url': payload['url'],
            'links': payload['links'],
        }

        # Context
        self._context = None
        self._solution = {'flow_sid': flow_sid, 'sid': sid or self._properties['sid'], }
def __init__ ( self , version , payload , flow_sid , sid = None ) : super ( EngagementInstance , self ) . __init__ ( version ) self . _properties = { 'sid' : payload [ 'sid' ] , 'account_sid' : payload [ 'account_sid' ] , 'flow_sid' : payload [ 'flow_sid' ] , 'contact_sid' : payload [ 'contact_sid' ] , 'contact_channel_address' : payload [ 'contact_channel_address' ] , 'context' : payload [ 'context' ] , 'status' : payload [ 'status' ] , 'date_created' : deserialize . iso8601_datetime ( payload [ 'date_created' ] ) , 'date_updated' : deserialize . iso8601_datetime ( payload [ 'date_updated' ] ) , 'url' : payload [ 'url' ] , 'links' : payload [ 'links' ] , } self . _context = None self . _solution = { 'flow_sid' : flow_sid , 'sid' : sid or self . _properties [ 'sid' ] , }
Initialize the EngagementInstance

        :returns: twilio.rest.studio.v1.flow.engagement.EngagementInstance
        :rtype: twilio.rest.studio.v1.flow.engagement.EngagementInstance