mapFromJson static method
Implementation
static Map<String, Rule> mapFromJson(Map<String, dynamic>? json) {
if (json == null) {
return <String, Rule>{};
}
return json.entries.fold(<String, Rule>{},
(Map<String, Rule> previousValue, element) {
final Rule? object = Rule.fromJson(element.value);
if (object is Rule) {
previousValue[element.key] = object;
}
return previousValue;
});
}