3 ms·The first seems ok to me. Kotlin and Java does the same - ignore methods when serializing into jsonby watwut 3y agoThe first seems ok to me. Kotlin and Java does the same - ignore methods when serializing into json