'Initialize the ServiceInstance
:returns: twilio.rest.notify.v1.service.ServiceInstance
:rtype: twilio.rest.notify.v1.service.ServiceInstance'

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

    super(ServiceInstance, self).__init__(version)
    self._properties = {'sid': payload['sid'], 'account_sid': payload['account_sid'], 'friendly_name': payload['friendly_name'], 'date_created': deserialize.iso8601_datetime(payload['date_created']), 'date_updated': deserialize.iso8601_datetime(payload['date_updated']), 'apn_credential_sid': payload['apn_credential_sid'], 'gcm_credential_sid': payload['gcm_credential_sid'], 'fcm_credential_sid': payload['fcm_credential_sid'], 'messaging_service_sid': payload['messaging_service_sid'], 'facebook_messenger_page_id': payload['facebook_messenger_page_id'], 'default_apn_notification_protocol_version': payload['default_apn_notification_protocol_version'], 'default_gcm_notification_protocol_version': payload['default_gcm_notification_protocol_version'], 'default_fcm_notification_protocol_version': payload['default_fcm_notification_protocol_version'], 'log_enabled': payload['log_enabled'], 'url': payload['url'], 'links': payload['links'], 'alexa_skill_id': payload['alexa_skill_id'], 'default_alexa_notification_protocol_version': payload['default_alexa_notification_protocol_version']}
    self._context = None
    self._solution = {'sid': (sid or self._properties['sid'])}
