getNestedDocument
Retrieves a nested document from the current document.
This method is used to access nested dynamic documents within the current document. The returned document can itself contain nested documents, allowing for deep traversal.
Return
The nested dynamic document.
Parameters
key
The key of the nested document.
Throws
if the key is not present.
if the value is not a DynamicDocument.