ListenResponse.fromJson constructor

ListenResponse.fromJson(
  1. Map _json
)

Implementation

ListenResponse.fromJson(core.Map _json) {
  if (_json.containsKey("documentChange")) {
    documentChange = new DocumentChange.fromJson(_json["documentChange"]);
  }
  if (_json.containsKey("documentDelete")) {
    documentDelete = new DocumentDelete.fromJson(_json["documentDelete"]);
  }
  if (_json.containsKey("documentRemove")) {
    documentRemove = new DocumentRemove.fromJson(_json["documentRemove"]);
  }
  if (_json.containsKey("filter")) {
    filter = new ExistenceFilter.fromJson(_json["filter"]);
  }
  if (_json.containsKey("targetChange")) {
    targetChange = new TargetChange.fromJson(_json["targetChange"]);
  }
}