requiredInt

fun JsonObject.requiredInt(key: String): Int

Returns the Int value for the given key, or throws SerializationException if the key is missing or null.