readDocument

@JvmOverloads
fun readDocument(json: String, limits: DocumentDecodeLimits = DocumentDecodeLimits.defaults()): DocumentSnapshot

Read A12 Document JSON into an immutable, owner-bound snapshot. Resource-limit failures are fail-fast; model-aware input diagnostics aggregate so a caller sees every defect at once.