ScheduledBackup.fromJson constructor

ScheduledBackup.fromJson(
  1. Map json_
)

Implementation

ScheduledBackup.fromJson(core.Map json_)
    : this(
        backupLocation: json_.containsKey('backupLocation')
            ? json_['backupLocation'] as core.String
            : null,
        cronSchedule: json_.containsKey('cronSchedule')
            ? json_['cronSchedule'] as core.String
            : null,
        enabled: json_.containsKey('enabled')
            ? json_['enabled'] as core.bool
            : null,
        latestBackup: json_.containsKey('latestBackup')
            ? LatestBackup.fromJson(
                json_['latestBackup'] as core.Map<core.String, core.dynamic>)
            : null,
        nextScheduledTime: json_.containsKey('nextScheduledTime')
            ? json_['nextScheduledTime'] as core.String
            : null,
        timeZone: json_.containsKey('timeZone')
            ? json_['timeZone'] as core.String
            : null,
      );