I have a class which is used as a request to hit another service.
It has few fields like below.
public class RequestClass {
@JsonProperty("123")
private String name;
@JsonProperty("124")
private String email;
@JsonProperty("129")
private String mobile;
}
The upstream service requires the request with field id like 123, 124, 129,etc.
These field id will be different for test and production environment.
Is there any better way to do it other than having different RequestClass?