write
Write an Object into TOML String.
Return
a string containing the TOML representation of the given Object
Parameters
from
the object to be written
Write an Object in TOML to a Writer. You MUST ensure that the Writers's encoding is set to UTF-8 for the TOML to be valid.
Parameters
from
the object to be written. Can be a Map or a custom type. Must not be null.
target
the Writer to which TOML will be written. The Writer is not closed.
Throws
if target.write() fails
if from is of an invalid type