CreateWorkflowTransitionRulesDetails.fromJson constructor

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

Implementation

factory CreateWorkflowTransitionRulesDetails.fromJson(
    Map<String, Object?> json) {
  return CreateWorkflowTransitionRulesDetails(
    conditions: json[r'conditions'] != null
        ? CreateWorkflowCondition.fromJson(
            json[r'conditions']! as Map<String, Object?>)
        : null,
    postFunctions: (json[r'postFunctions'] as List<Object?>?)
            ?.map((i) => CreateWorkflowTransitionRule.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    validators: (json[r'validators'] as List<Object?>?)
            ?.map((i) => CreateWorkflowTransitionRule.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}