RepairRolloutRule.fromJson constructor

RepairRolloutRule.fromJson(
  1. Map json_
)

Implementation

RepairRolloutRule.fromJson(core.Map json_)
    : this(
        condition: json_.containsKey('condition')
            ? AutomationRuleCondition.fromJson(
                json_['condition'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        jobs: json_.containsKey('jobs')
            ? (json_['jobs'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        repairModes: json_.containsKey('repairModes')
            ? (json_['repairModes'] as core.List)
                .map((value) => RepairMode.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sourcePhases: json_.containsKey('sourcePhases')
            ? (json_['sourcePhases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );