treatsAsNullableLong

fun JsonElement?.treatsAsNullableLong(defValue: Long? = null): Long?

Method used to treats a JsonElement value as nullable Long

Return

the JsonElement as nullable Long

Parameters

defValue

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