Operation.fromJson constructor

Operation.fromJson(
  1. Map _json
)

Implementation

Operation.fromJson(core.Map _json) {
  if (_json.containsKey("done")) {
    done = _json["done"];
  }
  if (_json.containsKey("error")) {
    error = new Status.fromJson(_json["error"]);
  }
  if (_json.containsKey("metadata")) {
    metadata =
        (_json["metadata"] as core.Map).cast<core.String, core.Object>();
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("response")) {
    response =
        (_json["response"] as core.Map).cast<core.String, core.Object>();
  }
}