parseOrNull

inline fun <T> LayeredPropertyMap.parseOrNull(key: String): T?

Function for reading and parsing the String values stored in the values to actual objects or return null.

Return

The parsed values for given type or null if the key doesn't exist.

Parameters

key

The key we are looking for in the store.

Throws

if the T is not supported or the key is blank string.

as the result of the conversion is cached, it'll be thrown if the second time around the T is different from it was called for the first time.