kotlinx-serialization / kotlinx.serialization.json / JsonObject / getAsOrNull

getAsOrNull

(common, js, jvm, native) fun <reified J : JsonElement> getAsOrNull(key: String): J?

Returns J associated with given key or null if element is not present or has different type