WriteRequest.fromJson constructor

WriteRequest.fromJson(Map _json)

Implementation

WriteRequest.fromJson(core.Map _json) {
  if (_json.containsKey("labels")) {
    labels = (_json["labels"] as core.Map).cast<core.String, core.String>();
  }
  if (_json.containsKey("streamId")) {
    streamId = _json["streamId"];
  }
  if (_json.containsKey("streamToken")) {
    streamToken = _json["streamToken"];
  }
  if (_json.containsKey("writes")) {
    writes = (_json["writes"] as core.List)
        .map<Write>((value) => new Write.fromJson(value))
        .toList();
  }
}