ConnectWorkflowTransitionRule.fromJson constructor

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

Implementation

factory ConnectWorkflowTransitionRule.fromJson(Map<String, Object?> json) {
  return ConnectWorkflowTransitionRule(
    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,
  );
}