title: Extra argument 'method' in call of Alamofire
body: <p>I've searched for this issue and there are many answers available but none are solving. I've defined parameters as:</p>
  
  <pre><code>let parameters = [
                  "name": username,
                  "mobile": "",
                  "email": email,
                  "password": "",
                  "blood_donor": "0",
                  "registration_id": defaults.string(forKey: "FCMToken"),
                  "platform": platform,
                  "appID": "3"
              ]
  </code></pre>
  
  <p>And after that when I send the request:</p>
  
  <pre><code>Alamofire.request(url, method: .post, parameters: parameters, encoding: URLEncoding(), headers: headers).responseJSON { response in
  </code></pre>
  
  <p>So I get a warning on <code>parameters</code></p>
  
  <blockquote>
    <p>Expression implicitly coerced from 'String?' to Any</p>
  </blockquote>
  
  <p>and if I put <code>!</code> next to parameters I start getting this error:</p>
  
  <blockquote>
    <p>Extra argument 'method' in call</p>
  </blockquote>
  
  <p>The function in which I've written all fo this is:
  <code>func sendLoginCall(username: String, email: String, platform: String)</code>. I have tried replacing <code>URLEncoding()</code> to <code>JSONEncoding.default</code> it didn't work.</p>
  
  <p>I'm calling this is method like this:</p>
  
  <pre><code>if let userName = data["name"], let email = data["email"] {
                              self.sendLoginCall(username: userName as! String, email: email as! String, platform: "fb")
                          }
  </code></pre>