executeRule static method
Implementation
static dynamic executeRule(Map<String, dynamic> rule, Map<String, dynamic> context) {
String type = rule['type'] ?? '';
switch (type) {
case 'condition':
return _executeConditionRule(rule, context);
default:
throw BaseError('Unknown rule type: $type');
}
}