You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is then de-serialized fine, but I would like to avoid the CanonicalName of the class but instead use a defined name. This would make it easier for later refactorings of this class.
The text was updated successfully, but these errors were encountered:
I do have a Domain-Model, which I do not like to dirty with framework and library specific Annotations (in this case @serializable and @SerialName).
So, currently I do use the solution described in the documentation (https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md#serializing-3rd-party-classes). This kinda works for the @Serializable-Annotation, but unfortunately seems to be not implemented for the @SerialName.
On using the Serialization, the above returns:
This is then de-serialized fine, but I would like to avoid the CanonicalName of the class but instead use a defined name. This would make it easier for later refactorings of this class.
The text was updated successfully, but these errors were encountered: