Check out example codes for "jackson ignore null". It will help you in understanding the concepts better.

Code Example 1

public class MyDto {     
	@JsonInclude(Include.NON_NULL)
  	private String stringValue;
  
  	private int intValue;     // standard getters and setters
}

Code Example 2

public class Object {
  
    @JsonInclude(NON_NULL)
    @JsonProperty("property")
    private String property;
  
}

Learn ReactJs, React Native from akashmittal.com