Sink.fromJson constructor
Sink.fromJson(
- 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,
);