asDocumentOrNull

Casts this FlowOutputContent as a Document and retrieves its aws.smithy.kotlin.runtime.content.Document value. Returns null if the FlowOutputContent is not a Document.