Rule.fromMap constructor
Creates a Rule instance from a map.
The map should contain actions and subject keys,
each mapping to a list of strings.
Implementation
factory Rule.fromMap(Map<String, dynamic> map) {
return Rule(
actions: List<String>.from(map['actions'] ?? []),
subject: List<String>.from(map['subject'] ?? []),
);
}