asTextOrNull

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