ConditionalNavigationRule.fromJson constructor
Implementation
factory ConditionalNavigationRule.fromJson(Map<String, dynamic> json) {
final inputValues = json['values'] as Map<String, dynamic>;
return ConditionalNavigationRule(
resultToStepIdentifierMapper: (results, input) {
for (final MapEntry entry in inputValues.entries) {
if (entry.key == input) {
return entry.value as String;
}
}
return null;
},
);
}