code: def from_array(array):
          
          if array is None or not array:
              return None
          # end if
          assert_type_or_raise(array, dict, parameter_name="array")
  
          data = {}
          data['url'] = u(array.get('url'))
          data['has_custom_certificate'] = bool(array.get('has_custom_certificate'))
          data['pending_update_count'] = int(array.get('pending_update_count'))
          data['last_error_date'] = int(array.get('last_error_date')) if array.get('last_error_date') is not None else None
          data['last_error_message'] = u(array.get('last_error_message')) if array.get('last_error_message') is not None else None
          data['max_connections'] = int(array.get('max_connections')) if array.get('max_connections') is not None else None
          data['allowed_updates'] = WebhookInfo._builtin_from_array_list(required_type=unicode_type, value=array.get('allowed_updates'), list_level=1) if array.get('allowed_updates') is not None else None
          data['_raw'] = array
          return WebhookInfo(**data)
docs: Deserialize a new WebhookInfo from a given dictionary.
  
          :return: new WebhookInfo instance.
          :rtype: WebhookInfo