asDocumentOrNull

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