toDynamicDocument
Extension function to convert a MutableMap to a SimpleDynamicDocument.
This provides a convenient way to wrap existing maps as dynamic documents.
Receiver
The mutable map to convert.
Return
A new SimpleDynamicDocument wrapping the map.