AppWorkflowTransitionRule.fromJson constructor

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

Implementation

factory AppWorkflowTransitionRule.fromJson(Map<String, Object?> json) {
  return AppWorkflowTransitionRule(
    configuration: RuleConfiguration.fromJson(
        json[r'configuration'] as Map<String, Object?>? ?? const {}),
    id: json[r'id'] as String? ?? '',
    key: json[r'key'] as String? ?? '',
    transition: json[r'transition'] != null
        ? WorkflowTransition.fromJson(
            json[r'transition']! as Map<String, Object?>)
        : null,
  );
}