pub fn flatten_if<'a>( condition: bool, document: &'a Document<'a> ) -> Document<'a>
Flattens a document if a condition is true.
condition