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 (counters != null) {
    _json["counters"] = (counters).toJson();
  }
  if (endTime != null) {
    _json["endTime"] = endTime;
  }
  if (errorBreakdowns != null) {
    _json["errorBreakdowns"] =
        errorBreakdowns.map((value) => (value).toJson()).toList();
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (notificationConfig != null) {
    _json["notificationConfig"] = (notificationConfig).toJson();
  }
  if (projectId != null) {
    _json["projectId"] = projectId;
  }
  if (startTime != null) {
    _json["startTime"] = startTime;
  }
  if (status != null) {
    _json["status"] = status;
  }
  if (transferJobName != null) {
    _json["transferJobName"] = transferJobName;
  }
  if (transferSpec != null) {
    _json["transferSpec"] = (transferSpec).toJson();
  }
  return _json;
}