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, value) => core.MapEntry(
key,
value 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,
);