In SimulatedApiClient we're dealing with a lot of fields when creating DTOs and passing values for all of them via a constructor is not very convenient, because it's easy to make a mistake. Instead, try to use the Builder pattern: https://www.baeldung.com/java-builder-pattern.
In
SimulatedApiClient
we're dealing with a lot of fields when creating DTOs and passing values for all of them via a constructor is not very convenient, because it's easy to make a mistake. Instead, try to use the Builder pattern: https://www.baeldung.com/java-builder-pattern.