factory Rule.fromJson(Map<String, dynamic> json) { return Rule( detectorId: json['detectorId'] as String, ruleId: json['ruleId'] as String, ruleVersion: json['ruleVersion'] as String, ); }