WriteRequest.fromJson constructor
WriteRequest.fromJson(
- Map _json
Implementation
WriteRequest.fromJson(core.Map _json)
: this(
labels: _json.containsKey('labels')
? (_json['labels'] as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
streamId: _json.containsKey('streamId')
? _json['streamId'] as core.String
: null,
streamToken: _json.containsKey('streamToken')
? _json['streamToken'] as core.String
: null,
writes: _json.containsKey('writes')
? (_json['writes'] as core.List)
.map((value) => Write.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);