WorkflowTransitionRulesUpdateErrorDetails.fromJson constructor

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

Implementation

factory WorkflowTransitionRulesUpdateErrorDetails.fromJson(
    Map<String, Object?> json) {
  return WorkflowTransitionRulesUpdateErrorDetails(
    ruleUpdateErrors:
        json[r'ruleUpdateErrors'] as Map<String, Object?>? ?? {},
    updateErrors: (json[r'updateErrors'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    workflowId: WorkflowId.fromJson(
        json[r'workflowId'] as Map<String, Object?>? ?? const {}),
  );
}