TransferRun.fromJson constructor

TransferRun.fromJson(
  1. Map _json
)

Implementation

TransferRun.fromJson(core.Map _json) {
  if (_json.containsKey("dataSourceId")) {
    dataSourceId = _json["dataSourceId"];
  }
  if (_json.containsKey("destinationDatasetId")) {
    destinationDatasetId = _json["destinationDatasetId"];
  }
  if (_json.containsKey("emailPreferences")) {
    emailPreferences =
        new EmailPreferences.fromJson(_json["emailPreferences"]);
  }
  if (_json.containsKey("endTime")) {
    endTime = _json["endTime"];
  }
  if (_json.containsKey("errorStatus")) {
    errorStatus = new Status.fromJson(_json["errorStatus"]);
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("notificationPubsubTopic")) {
    notificationPubsubTopic = _json["notificationPubsubTopic"];
  }
  if (_json.containsKey("params")) {
    params = (_json["params"] as core.Map).cast<core.String, core.Object>();
  }
  if (_json.containsKey("runTime")) {
    runTime = _json["runTime"];
  }
  if (_json.containsKey("schedule")) {
    schedule = _json["schedule"];
  }
  if (_json.containsKey("scheduleTime")) {
    scheduleTime = _json["scheduleTime"];
  }
  if (_json.containsKey("startTime")) {
    startTime = _json["startTime"];
  }
  if (_json.containsKey("state")) {
    state = _json["state"];
  }
  if (_json.containsKey("updateTime")) {
    updateTime = _json["updateTime"];
  }
  if (_json.containsKey("userId")) {
    userId = _json["userId"];
  }
}