RuleOrId.fromJson constructor
RuleOrId.fromJson(
- Object? json
Implementation
factory RuleOrId.fromJson(Object? json) {
if (json is String) {
return RuleId(id: json);
}
return Rule.fromJson(json);
}