I came back to work from vacation yesterday, and in our daily standup, my teammates mentioned they were refactoring all of the model objects in our java code to remove all g
The Law of Demeter about the working with objects, not data structure, in your case DTO as I understand.
The Law of Demeter explains that you can call methods of objects that are:
Data models represent containers with some data inside them that should be shown outside. It's their role and they haven't some other behavior besides this.