WorkflowRulesSearchDetails.fromJson constructor

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

Implementation

factory WorkflowRulesSearchDetails.fromJson(Map<String, Object?> json) {
  return WorkflowRulesSearchDetails(
    invalidRules: (json[r'invalidRules'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    validRules: (json[r'validRules'] as List<Object?>?)
            ?.map((i) => WorkflowTransitionRules.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    workflowEntityId: json[r'workflowEntityId'] as String?,
  );
}