convert

inline fun <T : Any> ConfigurationSection.convert(): T

Converts this ConfigurationSection to an instance of type T.

This method uses reflection to map the keys and values in the section to the properties of the class T.

Return

an instance of type T populated with data from this section

Parameters

T

the type to convert to