TransferOperation.fromJson constructor

TransferOperation.fromJson(
  1. Map _json
)

Implementation

TransferOperation.fromJson(core.Map _json) {
  if (_json.containsKey("counters")) {
    counters = new TransferCounters.fromJson(_json["counters"]);
  }
  if (_json.containsKey("endTime")) {
    endTime = _json["endTime"];
  }
  if (_json.containsKey("errorBreakdowns")) {
    errorBreakdowns = (_json["errorBreakdowns"] as core.List)
        .map<ErrorSummary>((value) => new ErrorSummary.fromJson(value))
        .toList();
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("notificationConfig")) {
    notificationConfig =
        new NotificationConfig.fromJson(_json["notificationConfig"]);
  }
  if (_json.containsKey("projectId")) {
    projectId = _json["projectId"];
  }
  if (_json.containsKey("startTime")) {
    startTime = _json["startTime"];
  }
  if (_json.containsKey("status")) {
    status = _json["status"];
  }
  if (_json.containsKey("transferJobName")) {
    transferJobName = _json["transferJobName"];
  }
  if (_json.containsKey("transferSpec")) {
    transferSpec = new TransferSpec.fromJson(_json["transferSpec"]);
  }
}