parse

abstract fun parse(raw: Any?, type: Class<*>): Any?

Parses the provided raw string into an object of the given type.

Return

the parsed object, or null if parsing failed

Parameters

raw

the string value to parse

type

the target type class