treatsAsNullableInt

fun JsonElement?.treatsAsNullableInt(defValue: Int? = null): Int?

Method used to treats a JsonElement value as nullable Int

Return

the JsonElement as nullable Int

Parameters

defValue

The default value to return if the JsonElement is null or is not a Int value