I have followed the instructions provided on the kotlinx.serialization github page but when I try to serialize my class, it throws the following runtime exception