i'm new to kotlin and i need help in regarding parsing json to sealed class using kotlin.serialization library, whats the difference between serializer and serialName
b
Big Chungus
11/12/2020, 6:45 PM
Serializer points to the class responsible for serializing the type. Serial name specifies under which name to serialize the property, simmilar to gsons JsonName
n
Nish Patel
11/12/2020, 7:27 PM
thanks
Nish Patel
11/12/2020, 10:51 PM
Do you know how we can provide serializer explicitly if we haven't mentioned the annotation above the class?