Rule.fromJson constructor
Rule.fromJson(
- Object? json
Implementation
factory Rule.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return Rule(
action: (map['action'] as String),
id: (map['id'] as String),
predicate: (map['predicate'] as String),
);
}