toObject

fun <T : Any> toObject(clazz: Class<T>): T?

Parse values of the next row into an object of the specified class and return that object. Return null if there is no row.