Create a fresh, empty Y.Doc with the spec's top-level shared types.
Idempotent: calling getMap twice returns the same shared type, so this is safe to call on an already-populated doc as well.
getMap
Optional
Create a fresh, empty Y.Doc with the spec's top-level shared types.
Idempotent: calling
getMaptwice returns the same shared type, so this is safe to call on an already-populated doc as well.