Allows for transforming data from one form to another using declarative rules.
To use, you must declare a subclass which has one or more properties annotated
with the @Expose() decorator. When the presentation is converted to JSON,
the property values from the instance given during instantiation will be used
within the JSON. If any property declaration within the Presentation<T> subclass
has a property type annotation for a type that extends Presentation<T>, a
new instance of that type will be constructed and passed the property value from
the given instance. This allows you to control the presentation of subobjects.
Allows for transforming data from one form to another using declarative rules. To use, you must declare a subclass which has one or more properties annotated with the
@Expose()
decorator. When the presentation is converted to JSON, the property values from theinstance
given during instantiation will be used within the JSON. If any property declaration within thePresentation<T>
subclass has a property type annotation for a type that extendsPresentation<T>
, a new instance of that type will be constructed and passed the property value from the giveninstance
. This allows you to control the presentation of subobjects.