title: how to hide key in payload if value of that key is null using mapstruct in springboot
body: <p>example dto generated:</p>
  
  <pre><code>{
    "id": 1,
    "name": "test",
    "attributes": null
  }
  </code></pre>
  
  <p>expecting response:</p>
  
  <pre><code>{
    "id": 1,
    "name": "test"
  }
  </code></pre>
  
  <p>here I have to ignore attributes while returning. I cannot use <strong>@JsonInclude(JsonInclude.Include.NON_NULL)</strong> in dto because it has to be auto generated for other reasons and I cannot give @NotNull in model because it can be null for some cases. Can someone please help me with this?</p>