toField

abstract fun toField(value: K): Pair<String, AttributeValue>

Creates a DynamoDB key-value pair for an attribute as a Pair<String, AttributeValue>, suitable for use in an Item instance.