decode From Reader
Deserializes the content of reader into a value of type T using the serializer retrieved from reified type parameter.
Parameters
reader
MUST contain a TOML file, as this method delegates parsing to Toml.parseToTomlTable.
Throws
Toml Decoding Exception
if the content cannot be parsed into TomlTable or cannot be deserialized.
Parses the content of reader into a TomlTable and deserializes the corresponding element fetched with keys into a value of type T using the serializer retrieved from reified type parameter.
Parameters
reader
MUST contain a TOML file, as this method delegates parsing to Toml.parseToTomlTable.
See also
Throws
Toml Decoding Exception
if the content cannot be parsed into TomlTable or the element cannot be deserialized.
Non Primitive Key Exception
if provided non-primitive keys.