MaintenanceWindow.fromJson constructor

MaintenanceWindow.fromJson(
  1. Map json_
)

Implementation

MaintenanceWindow.fromJson(core.Map json_)
    : this(
        dailyMaintenanceWindow: json_.containsKey('dailyMaintenanceWindow')
            ? DailyMaintenanceWindow.fromJson(json_['dailyMaintenanceWindow']
                as core.Map<core.String, core.dynamic>)
            : null,
        maintenanceExclusions: json_.containsKey('maintenanceExclusions')
            ? (json_['maintenanceExclusions']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  TimeWindow.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        recurringWindow: json_.containsKey('recurringWindow')
            ? RecurringTimeWindow.fromJson(json_['recurringWindow']
                as core.Map<core.String, core.dynamic>)
            : null,
      );