title: Jackson custom deserializer of multiple properties into value object class
body: <p>Let's say I have following flat JSON structure:</p>
  
  <pre><code>{
      "name": "name",
      "validFrom": "2018-01-09",
      "validTo": "2018-01-10",
  }
  </code></pre>
  
  <p>and <code>MyPojo</code> class:</p>
  
  <pre><code>public class MyPojo {
      private String name;
  
      @JsonUnwrapped
      private Validity validity;
  }
  </code></pre>
  
  <p>and <code>Validity</code> class:</p>
  
  <pre><code>public class Validity {
      private LocalDate validFrom;
      private LocalDate validTo;
  }
  </code></pre>
  
  <p>I created custom unwrapping serializer and it works fine.</p>
  
  <p>I would like to deserialize JSON above into <code>MyPojo</code> class which includes <code>Validity</code> value object.</p>
  
  <p>How should custom deserializer for <code>Validity</code> be implemented?</p>
  
  <p><code>@JsonProperty</code> does not work as I want to use 2 Json properties for <code>Validity</code> construction</p>