Concept Flow - Nested DTOs
Define Outer DTO Class
Define Inner DTO Class
Outer DTO has Inner DTO as a field
Create Inner DTO instance
Create Outer DTO instance with Inner DTO
Use Outer DTO in Controller or Service
Serialize/Deserialize JSON with nested structure
This flow shows how an outer DTO contains an inner DTO as a field, how instances are created, and how nested data is handled in Spring Boot.