title: this class is not key value coding-compliant for the key name
body: <p>I face a problem when I pass values to method that take a key value dictionary: </p>
  
  <pre><code>func fetchUserAndSetupNavBarTitle() {
      guard let uid = Auth.auth().currentUser?.uid else {
          return
      }
      Database.database().reference().child("users").child(uid).observeSingleEvent(of: .value, with: {
          (snapshot) in
          if let dictionary = snapshot.value as? [String: AnyObject] {
              // self.navigationItem.title = dictionary["name"] as? String
  
              let user = User1()
              user.setValuesForKeys(dictionary)
              self.setupNavBarWithUser(user: user)
          }
      }, withCancel: nil)
  }
  </code></pre>
  
  <p>I get this error: </p>
  
  <pre><code>terminating with uncaught exception of type NSException
  this class is not key value coding-compliant for the key name
  </code></pre>
  
  <p>The error occur at this line: <code>user.setValuesForKeys(dictionary)</code></p>
  
  <p>This question is not a copy to another questions since each question is caused by a different problem</p>
  
  <p>In response to a comment, the User1 class contains:</p>
  
  <pre><code>class User1: NSObject {
      var name: String?
      var email: String?
      var profileImageUrl: String?
  }
  </code></pre>