DocumentChange.fromJson constructor

DocumentChange.fromJson(
  1. Map _json
)

Implementation

DocumentChange.fromJson(core.Map _json) {
  if (_json.containsKey("document")) {
    document = new Document.fromJson(_json["document"]);
  }
  if (_json.containsKey("removedTargetIds")) {
    removedTargetIds =
        (_json["removedTargetIds"] as core.List).cast<core.int>();
  }
  if (_json.containsKey("targetIds")) {
    targetIds = (_json["targetIds"] as core.List).cast<core.int>();
  }
}