ConditionGroupUpdate.fromJson constructor

ConditionGroupUpdate.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ConditionGroupUpdate.fromJson(Map<String, Object?> json) {
  return ConditionGroupUpdate(
    conditionGroups: (json[r'conditionGroups'] as List<Object?>?)
            ?.map((i) => ConditionGroupUpdate.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    conditions: (json[r'conditions'] as List<Object?>?)
            ?.map((i) => WorkflowRuleConfiguration.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    operation: ConditionGroupUpdateOperation.fromValue(
        json[r'operation'] as String? ?? ''),
  );
}