Converting a custom object list in simple list in kotlin
val productNameList = productList.map { it.ProductType }
No need to specify type, it will be inferred
Check Higher-Order Functions and Lambdas
You can use the map function:
val productNameList:List<String> = productList.map { it.ProductType }
This will map each ProductsResponse to it's ProductType.