toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (done != null) {
    _json["done"] = done;
  }
  if (error != null) {
    _json["error"] = (error).toJson();
  }
  if (metadata != null) {
    _json["metadata"] = metadata;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (response != null) {
    _json["response"] = response;
  }
  return _json;
}