Sink.fromJson constructor

Sink.fromJson(
  1. Map _json
)

Implementation

Sink.fromJson(core.Map _json)
    : this(
        codec: _json.containsKey('codec')
            ? (_json['codec'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.Object,
                ),
              )
            : null,
        spec: _json.containsKey('spec')
            ? (_json['spec'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.Object,
                ),
              )
            : null,
      );