DataSourceRefreshSchedule.fromJson constructor

DataSourceRefreshSchedule.fromJson(
  1. Map json_
)

Implementation

DataSourceRefreshSchedule.fromJson(core.Map json_)
    : this(
        dailySchedule: json_.containsKey('dailySchedule')
            ? DataSourceRefreshDailySchedule.fromJson(
                json_['dailySchedule'] as core.Map<core.String, core.dynamic>)
            : null,
        enabled: json_.containsKey('enabled')
            ? json_['enabled'] as core.bool
            : null,
        monthlySchedule: json_.containsKey('monthlySchedule')
            ? DataSourceRefreshMonthlySchedule.fromJson(
                json_['monthlySchedule']
                    as core.Map<core.String, core.dynamic>)
            : null,
        nextRun: json_.containsKey('nextRun')
            ? Interval.fromJson(
                json_['nextRun'] as core.Map<core.String, core.dynamic>)
            : null,
        refreshScope: json_.containsKey('refreshScope')
            ? json_['refreshScope'] as core.String
            : null,
        weeklySchedule: json_.containsKey('weeklySchedule')
            ? DataSourceRefreshWeeklySchedule.fromJson(json_['weeklySchedule']
                as core.Map<core.String, core.dynamic>)
            : null,
      );