I was trying to use ModelMapper to skip certain attributes from the object using @JsonFilter("apiFilter") only at a specific point of code.
ModelMapper
@JsonFilter("apiFilter")