asRecordOrNull

Casts this AttributeValue as a Record and retrieves its kotlin.collections.Map value. Returns null if the AttributeValue is not a Record.