SnapshotPolicy.fromJson constructor
SnapshotPolicy.fromJson(
- Map json_
Implementation
SnapshotPolicy.fromJson(core.Map json_)
: this(
dailySchedule: json_.containsKey('dailySchedule')
? DailySchedule.fromJson(
json_['dailySchedule'] as core.Map<core.String, core.dynamic>)
: null,
enabled: json_['enabled'] as core.bool?,
hourlySchedule: json_.containsKey('hourlySchedule')
? HourlySchedule.fromJson(json_['hourlySchedule']
as core.Map<core.String, core.dynamic>)
: null,
monthlySchedule: json_.containsKey('monthlySchedule')
? MonthlySchedule.fromJson(json_['monthlySchedule']
as core.Map<core.String, core.dynamic>)
: null,
weeklySchedule: json_.containsKey('weeklySchedule')
? WeeklySchedule.fromJson(json_['weeklySchedule']
as core.Map<core.String, core.dynamic>)
: null,
);