factory RuleAction.fromMap(Map<String, dynamic> map) { return RuleAction( variant: Deserializer(map).getString('variant'), ); }