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 (dataRefreshWindowDays != null) {
    _json["dataRefreshWindowDays"] = dataRefreshWindowDays;
  }
  if (dataSourceId != null) {
    _json["dataSourceId"] = dataSourceId;
  }
  if (datasetRegion != null) {
    _json["datasetRegion"] = datasetRegion;
  }
  if (destinationDatasetId != null) {
    _json["destinationDatasetId"] = destinationDatasetId;
  }
  if (disabled != null) {
    _json["disabled"] = disabled;
  }
  if (displayName != null) {
    _json["displayName"] = displayName;
  }
  if (emailPreferences != null) {
    _json["emailPreferences"] = (emailPreferences).toJson();
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (nextRunTime != null) {
    _json["nextRunTime"] = nextRunTime;
  }
  if (notificationPubsubTopic != null) {
    _json["notificationPubsubTopic"] = notificationPubsubTopic;
  }
  if (params != null) {
    _json["params"] = params;
  }
  if (schedule != null) {
    _json["schedule"] = schedule;
  }
  if (scheduleOptions != null) {
    _json["scheduleOptions"] = (scheduleOptions).toJson();
  }
  if (state != null) {
    _json["state"] = state;
  }
  if (updateTime != null) {
    _json["updateTime"] = updateTime;
  }
  if (userId != null) {
    _json["userId"] = userId;
  }
  return _json;
}