Sometimes we can have properties that are optional and that can have default values. You can define the default values for your DTO properties in the defaults function:
If you're using attributes to define your properties default values or if you don't have any defaults values for the properties, you can use the EmptyDefaults trait to avoid having to define the defaults() method.