In our api we user the type property to define types of resources. But when I deserialize the data from the back-end, the type property gets lost from the data. Is this natural behaviour/best practice? Because they're useful to us for filtering and separating types of resources in our client app.
In our api we user the
type
property to define types of resources. But when I deserialize the data from the back-end, thetype
property gets lost from the data. Is this natural behaviour/best practice? Because they're useful to us for filtering and separating types of resources in our client app.Input:
Usage:
Output: