JsonApiX is an Android, annotation processor library that was made to transform regular Kotlin classes into their JSON API representations, with the ability to serialize or deserialize them to or from strings.
Apache License 2.0
38
stars
9
forks
source link
Inherit from custom/default link classes when building main model class #63
Now the generate model will inherit form the custom link classes which the user has specified(for all placements). If there are no custom classes, the model will instead inherit form the DefaultLink class.
With this change multiple gemerated files needed to make this change as well(JsonApiXList_, JsonApiX_, ResourceObject_,JsonXExtensions) so this is done in their spec builders.
The project builds normally and I tested the serialisation/deserialisation of the person model in the sample view model.
Task
Now the generate model will inherit form the custom link classes which the user has specified(for all placements). If there are no custom classes, the model will instead inherit form the
DefaultLink
class.With this change multiple gemerated files needed to make this change as well(
JsonApiXList_
,JsonApiX_
,ResourceObject_
,JsonXExtensions
) so this is done in their spec builders.The project builds normally and I tested the serialisation/deserialisation of the person model in the sample view model.