ResourcePolicyInstanceSchedulePolicy.fromJson constructor

ResourcePolicyInstanceSchedulePolicy.fromJson(
  1. Map json_
)

Implementation

ResourcePolicyInstanceSchedulePolicy.fromJson(core.Map json_)
    : this(
        expirationTime: json_.containsKey('expirationTime')
            ? json_['expirationTime'] as core.String
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        timeZone: json_.containsKey('timeZone')
            ? json_['timeZone'] as core.String
            : null,
        vmStartSchedule: json_.containsKey('vmStartSchedule')
            ? ResourcePolicyInstanceSchedulePolicySchedule.fromJson(
                json_['vmStartSchedule']
                    as core.Map<core.String, core.dynamic>)
            : null,
        vmStopSchedule: json_.containsKey('vmStopSchedule')
            ? ResourcePolicyInstanceSchedulePolicySchedule.fromJson(
                json_['vmStopSchedule']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );