kvision / pl.treksoft.kvision.form / kotlin.collections.Map

Extensions for kotlin.collections.Map

asJson

fun Map<String, Any?>.asJson(): Json

Returns map values in JSON format.

bool

fun Map<String, Any?>.bool(key: String): Boolean?

Returns given value from the map as a Boolean.

date

fun Map<String, Any?>.date(key: String): Date?

Returns given value from the map as a Date.

number

fun Map<String, Any?>.number(key: String): Number?

Returns given value from the map as a Number.

string

fun Map<String, Any?>.string(key: String): String?

Returns given value from the map as a String.