automatic
The annotation processor will try to find the best way to decode the @Json-annotated class using the following approaches, in order:
nonefor anyobjectthe constructor annotated with @Json.Constructor if present
the primary constructor if present, accessible and not annotated with @Json.Excluded
a secondary constructor if there is only one accessible and not annotated with @Json.Excluded
Accessible in this case means having internal or public visibility.
Note that an error will be raised if
multiple secondary constructors could be used and there is no primary constructor
the constructor which would be chosen uses
varargnone of the approaches can be used to create an instance of the class