fromJson static method
Decodes a node with catalog (default: Catalog.current); id wins
over the JSON's own (the document map key). Returns null only when
there's no type. A type the catalog doesn't declare keeps its props
raw (Props.unknown).
Implementation
static Node? fromJson(Object? json, {String? id, Catalog? catalog}) {
final c = catalog ?? Catalog.current;
return identical(c, Catalog.current) ? _fromJson(json, id, c) : Catalog.run(c, () => _fromJson(json, id, c));
}