toDocument

abstract fun toDocument(): Document

Returns the pretty text representation of this object.