ConditionGroupConfiguration.fromJson constructor

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

Implementation

factory ConditionGroupConfiguration.fromJson(Map<String, Object?> json) {
  return ConditionGroupConfiguration(
    conditionGroups: (json[r'conditionGroups'] as List<Object?>?)
            ?.map((i) => ConditionGroupConfiguration.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: json[r'operation'] != null
        ? ConditionGroupConfigurationOperation.fromValue(
            json[r'operation']! as String)
        : null,
  );
}