StandardSchedule.fromJson constructor

StandardSchedule.fromJson(
  1. Map json_
)

Implementation

StandardSchedule.fromJson(core.Map json_)
    : this(
        backupWindow: json_.containsKey('backupWindow')
            ? BackupWindow.fromJson(
                json_['backupWindow'] as core.Map<core.String, core.dynamic>)
            : null,
        daysOfMonth: (json_['daysOfMonth'] as core.List?)
            ?.map((value) => value as core.int)
            .toList(),
        daysOfWeek: (json_['daysOfWeek'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        hourlyFrequency: json_['hourlyFrequency'] as core.int?,
        months: (json_['months'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        recurrenceType: json_['recurrenceType'] as core.String?,
        timeZone: json_['timeZone'] as core.String?,
        weekDayOfMonth: json_.containsKey('weekDayOfMonth')
            ? WeekDayOfMonth.fromJson(json_['weekDayOfMonth']
                as core.Map<core.String, core.dynamic>)
            : null,
      );