title: Argument type does not conform to Encodable
body: <p>I am trying to create a Struct for a POST request. The struct conforms, to the best of my knowledge to the <code>Codable</code> typealias but I keep getting the error </p>
  
  <blockquote>
    <p>Argument type 'RegisterUserRequest.Type' does not conform to expected type 'Encodable' " when passing it in as a parameter to my <code>JSONEncoder</code>.</p>
  </blockquote>
  
  <p>I have tried to conform only to <code>Encodable</code>, to write the suggested required init() but nothing seems to work.</p>
  
  <p>This is the way my Struct looks like</p>
  
  <pre><code>
  struct RegisterUserRequest: Codable {
      var firstName: String
      var lastName: String
      var email: String
      var phoneNumber: String
      var dateOfBirth: String
  
      enum CodingKeys: String, CodingKey {
          case firstName = "first_name"
          case lastName = "last_name"
          case email
          case phoneNumber = "phone"
          case dateOfBirth = "date_of_birth"
      }
  }
  
  </code></pre>
  
  <p>This is the error I get</p>
  
  <p><a href="https://i.stack.imgur.com/Gappp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gappp.png" alt="enter image description here"></a></p>