Snapshot.fromJson constructor

  1. dynamic content, {
  2. 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


factory Snapshot.fromJson(dynamic content, {SnapshotDecoder? decoder}) =>
    _SnapshotImpl(content, decoder: decoder);