TransferJob.fromJson constructor

TransferJob.fromJson(
  1. Map _json
)

Implementation

TransferJob.fromJson(core.Map _json) {
  if (_json.containsKey("creationTime")) {
    creationTime = _json["creationTime"];
  }
  if (_json.containsKey("deletionTime")) {
    deletionTime = _json["deletionTime"];
  }
  if (_json.containsKey("description")) {
    description = _json["description"];
  }
  if (_json.containsKey("lastModificationTime")) {
    lastModificationTime = _json["lastModificationTime"];
  }
  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("schedule")) {
    schedule = new Schedule.fromJson(_json["schedule"]);
  }
  if (_json.containsKey("status")) {
    status = _json["status"];
  }
  if (_json.containsKey("transferSpec")) {
    transferSpec = new TransferSpec.fromJson(_json["transferSpec"]);
  }
}