cky
08/26/2018, 4:26 AMval result = Klaxon()
.parse<Person>("""
{
"name": "John Smith",
}
""")
assert(result.name == "John Smith")
assert(result.age == 23)
That implies that Klaxon().parse<Person>()
returns a Person
. However, it seems like that method actually returns a Person?
. So which is the correct behaviour? Currently I work around the difference by using !!
but I’d love to avoid using that if possible.