title: 'HTTPMethod' is ambiguous for type lookup in this context?
body: <blockquote>
    <p>Can anyone help with this issue? I am using swift 5 and Xcode 10.3</p>
    
    <p>The code below was created with purpose of avoiding duplicating code.
    So I created new function to request server with passing parameters
    below.</p>
  </blockquote>
  
  <pre><code>func requestServer(_ method: HTTPMethod,_ path: String,_ params: [String: Any]?,_ encoding:
      ParameterEncoding,_ completionHandler: @escaping (JSON) -&gt; Void) {
  
      let url = baseURL?.appendingPathComponent(path)
  
      refreshTokenIfNeed {
  
          AF.request(url!, method: method, parameters: params, encoding: encoding, headers: nil).responseJSON{ response in
  
              switch response.result {
              case .success(let value):
                  let jsonData = JSON(value)
                  completionHandler(jsonData)
                  break
  
  
              case .failure:
                  completionHandler(nil)
                  break
  
              }
          }
      }
  
  }
  
  // API - Getting Restaurant list
  func getRestaurant(completionHandler: @escaping (JSON) -&gt; Void) {
  
      let path = "api/customer/restaurants"
      requestServer(.get, path, nil, URLEncoding(), completionHandler)
  
  
  }
  
  // API - Getting list of Meal for Restaurants
  func getMeals(restauranId: Int, completionHandler: @escaping (JSON) -&gt; Void) {
  
      let path = "api/customer/meals/\(RestaurantId)"
      requestServer(.get, path, nil, URLEncoding(), completionHandler)
  </code></pre>