title: How to exclude fields in ObjectMapper during serialization?
body: <p>So I have a simple class like the following:</p>
  
  <pre><code>class User: NSObject {
  
    var name = ""
    var phoneNumber = ""
  
    override func mapping(map: Map) {
      super.mapping(map)
      name          &lt;- map["name"]
      phoneNumber   &lt;- map["phoneNumber"]
    }
  
  }
  </code></pre>
  
  <p>This works great when turning a <code>JSON</code> response that contains these fields into an object. However i would like to exclude a field when serializing back to <code>JSON</code>. How can I do that? Let's say I would only like to send <code>name</code> and omit <code>phoneNumber</code>. Is this possible? Seems like a pretty reasonable use case, but I haven't managed to find a solution .</p>