toList

Edit page Last modified: 14 January 2025

Converts DataFrame into a List of data class instances by current DataFrame type argument.

Type of data class is defined by current type argument of DataFrame. If this type argument is not data class, exception will be thrown.

Data class properties are matched with DataFrame columns by name. If property type differs from column type type conversion will be performed. If no automatic type conversion was found, exception will be thrown.

To export DataFrame into specific type of data class, use toListOf: