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 (authorizationType != null) {
    _json["authorizationType"] = authorizationType;
  }
  if (clientId != null) {
    _json["clientId"] = clientId;
  }
  if (dataRefreshType != null) {
    _json["dataRefreshType"] = dataRefreshType;
  }
  if (dataSourceId != null) {
    _json["dataSourceId"] = dataSourceId;
  }
  if (defaultDataRefreshWindowDays != null) {
    _json["defaultDataRefreshWindowDays"] = defaultDataRefreshWindowDays;
  }
  if (defaultSchedule != null) {
    _json["defaultSchedule"] = defaultSchedule;
  }
  if (description != null) {
    _json["description"] = description;
  }
  if (displayName != null) {
    _json["displayName"] = displayName;
  }
  if (helpUrl != null) {
    _json["helpUrl"] = helpUrl;
  }
  if (manualRunsDisabled != null) {
    _json["manualRunsDisabled"] = manualRunsDisabled;
  }
  if (minimumScheduleInterval != null) {
    _json["minimumScheduleInterval"] = minimumScheduleInterval;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (parameters != null) {
    _json["parameters"] =
        parameters.map((value) => (value).toJson()).toList();
  }
  if (scopes != null) {
    _json["scopes"] = scopes;
  }
  if (supportsCustomSchedule != null) {
    _json["supportsCustomSchedule"] = supportsCustomSchedule;
  }
  if (supportsMultipleTransfers != null) {
    _json["supportsMultipleTransfers"] = supportsMultipleTransfers;
  }
  if (transferType != null) {
    _json["transferType"] = transferType;
  }
  if (updateDeadlineSeconds != null) {
    _json["updateDeadlineSeconds"] = updateDeadlineSeconds;
  }
  return _json;
}