DEV Community


Discussion on: Kotlin CSV to Data Class Parser

grodzickir profile image
Ryszard Grodzicki

I'd propose an enhancement to the customKeyMap, or implementing another parameter for stating the mapping in more kotlin way with KProperty:

val grass = grass<DateTimeTypes> {
        customKeyMap = mapOf("hour" to DateTimeTypes::time, "birthdate" to DateTimeTypes::date)
Enter fullscreen mode Exit fullscreen mode

Nonetheless - great job 👍

Thread Thread
blackmo18 profile image
Victor Harlan D. Lacson Author • Edited

I agree with your suggestion, ill keep this in mind in the future release.

Forem Open with the Forem app