Better code for mapping json objects with AWS Dynamo AttributeValues in Kotlin
I am using below code to map the json objects with AWS Dynamo DB attributes but I am not sure whether this will be having any performance issue or not? Please let me know if we have any other better way to achieve it.
I have list of maps and want store them in Dynamo. I am using AWS SDK V2 and Kotlin for it.
//items in model class
var items: List? = null
val itemValues = mutableMapOf()
itemValues.put("items", fromL(
order.items?.map { attributes ->
fromM(
attributes.mapValues { attribute ->...