treatsAsNullableFloat

fun JsonElement?.treatsAsNullableFloat(defValue: Float? = null): Float?

Method used to treats a JsonElement value as nullable Float

Return

the JsonElement as nullable Float

Parameters

defValue

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