ResourcePolicyHourlyCycle.fromJson constructor

ResourcePolicyHourlyCycle.fromJson(
  1. Map json_
)

Implementation

ResourcePolicyHourlyCycle.fromJson(core.Map json_)
    : this(
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        hoursInCycle: json_.containsKey('hoursInCycle')
            ? json_['hoursInCycle'] as core.int
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
      );