https://kotlinlang.org logo
#klaxon
Title
d

dalexander

12/17/2018, 4:19 PM
Does Klaxon provide a means of papering over inconsistent data types from the server for a particular field? ie. if I’m trying to populate a Double in my data class, but the server sends some combination of a double, integer or String (sigh), is there a way of providing an adapter or something similar to perform the conversion (rather than crashing due to type mismatch)?