TransferConfig.fromJson constructor

TransferConfig.fromJson(
  1. Map _json
)

Implementation

TransferConfig.fromJson(core.Map _json) {
  if (_json.containsKey("dataRefreshWindowDays")) {
    dataRefreshWindowDays = _json["dataRefreshWindowDays"];
  }
  if (_json.containsKey("dataSourceId")) {
    dataSourceId = _json["dataSourceId"];
  }
  if (_json.containsKey("datasetRegion")) {
    datasetRegion = _json["datasetRegion"];
  }
  if (_json.containsKey("destinationDatasetId")) {
    destinationDatasetId = _json["destinationDatasetId"];
  }
  if (_json.containsKey("disabled")) {
    disabled = _json["disabled"];
  }
  if (_json.containsKey("displayName")) {
    displayName = _json["displayName"];
  }
  if (_json.containsKey("emailPreferences")) {
    emailPreferences =
        new EmailPreferences.fromJson(_json["emailPreferences"]);
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("nextRunTime")) {
    nextRunTime = _json["nextRunTime"];
  }
  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("schedule")) {
    schedule = _json["schedule"];
  }
  if (_json.containsKey("scheduleOptions")) {
    scheduleOptions = new ScheduleOptions.fromJson(_json["scheduleOptions"]);
  }
  if (_json.containsKey("state")) {
    state = _json["state"];
  }
  if (_json.containsKey("updateTime")) {
    updateTime = _json["updateTime"];
  }
  if (_json.containsKey("userId")) {
    userId = _json["userId"];
  }
}