asDurationOrNull

Casts this AttributeValue as a Duration and retrieves its kotlin.String value. Returns null if the AttributeValue is not a Duration.