WriteResponse.fromJson constructor
WriteResponse.fromJson(
- Map _json
Implementation
WriteResponse.fromJson(core.Map _json)
: this(
commitTime: _json.containsKey('commitTime')
? _json['commitTime'] as core.String
: null,
streamId: _json.containsKey('streamId')
? _json['streamId'] as core.String
: null,
streamToken: _json.containsKey('streamToken')
? _json['streamToken'] as core.String
: null,
writeResults: _json.containsKey('writeResults')
? (_json['writeResults'] as core.List)
.map((value) => WriteResult.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);