How to chain filter expressions together
I have data in the following format
ArrayList
{
"a":[a-bytestring]
"b":[b-bytestring]
"a:model":"1"
"b:model":"1"
}
I am looking for a clean way to transform this data into the same format (ArrayList) where the key is the value of a and value is the value of a:model.
Desired output
List
{
[a-bytestring]:"amodel-string"
[b-bytestring]:"bmodel-string"
}
I assume this will involve the use of filters or other map operations but am not familiar enough with Kotlin yet to know this