Snapshot.fromJson constructor
Snapshot.fromJson(
- dynamic content, {
- SnapshotDecoder? decoder,
Creates a snapshot from the JSON-like content
content
will be converted to an unmodifiable object first, so that the
deep immutability of a snapshot is guaranteed.
When decoder
is null, the SnapshotDecoder.defaultDecoder will be used
Implementation
factory Snapshot.fromJson(dynamic content, {SnapshotDecoder? decoder}) =>
_SnapshotImpl(content, decoder: decoder);