up-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><h4 class="">Document builder DSL</h4><p class="paragraph">For creating a <code class="lang-kotlin">MutableDocument</code> ready to be saved, you can use a Kotlin builder DSL:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val document = MutableDocument {<br>    "name" to "Damian"<br>    "surname" to "Giusti"<br>    "age" to 24<br>    "pets" to listOf(