MultiConditionalSplitActivity.fromJson constructor

MultiConditionalSplitActivity.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MultiConditionalSplitActivity.fromJson(Map<String, dynamic> json) {
  return MultiConditionalSplitActivity(
    branches: (json['Branches'] as List?)
        ?.whereNotNull()
        .map(
            (e) => MultiConditionalBranch.fromJson(e as Map<String, dynamic>))
        .toList(),
    defaultActivity: json['DefaultActivity'] as String?,
    evaluationWaitTime: json['EvaluationWaitTime'] != null
        ? WaitTime.fromJson(
            json['EvaluationWaitTime'] as Map<String, dynamic>)
        : null,
  );
}