snowe
12/04/2017, 5:34 PMincomes:
HOURLY_SALARY_BASE_WAGE_INCOME:
- types: "PAYSTUB"
- types: "W2"adam-mcneilly
12/04/2017, 5:37 PMval typesList = listOf("W2", "Paystub")
val map: Map<String, List<String>> = mapOf("types" to typesList)
println(map) // {types=[W2, Paystub]}adam-mcneilly
12/04/2017, 5:38 PMleosan
12/04/2017, 5:38 PM.mapValuesToleosan
12/04/2017, 5:40 PMkey to a value value of typessnowe
12/04/2017, 5:40 PMmapValues {} but that maps the entire key as well.snowe
12/04/2017, 5:40 PMOTHER:
types:
OTHER:
- "LETTER_OF_EXPLANATION"
- "APPLICANT_FINANCIAL_STATEMENT"snowe
12/04/2017, 5:40 PMsnowe
12/04/2017, 5:40 PMsnowe
12/04/2017, 5:40 PMval assets = assetValues.drop(1).groupBy({ it[assetEnumCol] }, { it[assetDocCol]}).mapValues { mapOf("types" to it.value) }snowe
12/04/2017, 5:41 PMsnowe
12/04/2017, 5:41 PMleosan
12/04/2017, 5:42 PMadam-mcneilly
12/04/2017, 5:43 PM