Monday
Tuesday
If you want to add another mapping rule, you can do that withnin the existing mapKeys function:
map(x => x.mapKeys((value, key) => key.contains('Memo') ? "description" : (key.contains('unique_id') ? "custcol_xero_unique_key" : key)))
Or, if you need to add conditions for more fields than also you can utilize the match operator.