SchedulePolicy.fromJson constructor

SchedulePolicy.fromJson(
  1. Map json_
)

Implementation

SchedulePolicy.fromJson(core.Map json_)
    : this(
        idleDuration: json_.containsKey('idleDuration')
            ? json_['idleDuration'] as core.String
            : null,
        skipOsAdaptation: json_.containsKey('skipOsAdaptation')
            ? json_['skipOsAdaptation'] as core.bool
            : null,
      );