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 (dataSourceId != null) {
    _json["dataSourceId"] = dataSourceId;
  }
  if (destinationDatasetId != null) {
    _json["destinationDatasetId"] = destinationDatasetId;
  }
  if (emailPreferences != null) {
    _json["emailPreferences"] = (emailPreferences).toJson();
  }
  if (endTime != null) {
    _json["endTime"] = endTime;
  }
  if (errorStatus != null) {
    _json["errorStatus"] = (errorStatus).toJson();
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (notificationPubsubTopic != null) {
    _json["notificationPubsubTopic"] = notificationPubsubTopic;
  }
  if (params != null) {
    _json["params"] = params;
  }
  if (runTime != null) {
    _json["runTime"] = runTime;
  }
  if (schedule != null) {
    _json["schedule"] = schedule;
  }
  if (scheduleTime != null) {
    _json["scheduleTime"] = scheduleTime;
  }
  if (startTime != null) {
    _json["startTime"] = startTime;
  }
  if (state != null) {
    _json["state"] = state;
  }
  if (updateTime != null) {
    _json["updateTime"] = updateTime;
  }
  if (userId != null) {
    _json["userId"] = userId;
  }
  return _json;
}