MaintenanceWindow.fromJson constructor

MaintenanceWindow.fromJson(
  1. Map json_
)

Implementation

MaintenanceWindow.fromJson(core.Map json_)
  : this(
      customActionTimeoutMins: json_['customActionTimeoutMins'] as core.int?,
      daysOfWeek: (json_['daysOfWeek'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      hoursOfDay: (json_['hoursOfDay'] as core.List?)
          ?.map((value) => value as core.int)
          .toList(),
      isCustomActionTimeoutEnabled:
          json_['isCustomActionTimeoutEnabled'] as core.bool?,
      leadTimeWeek: json_['leadTimeWeek'] as core.int?,
      months: (json_['months'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      patchingMode: json_['patchingMode'] as core.String?,
      preference: json_['preference'] as core.String?,
      weeksOfMonth: (json_['weeksOfMonth'] as core.List?)
          ?.map((value) => value as core.int)
          .toList(),
    );