mapFromJson static method
Implementation
static Map<String, Permission?> mapFromJson(dynamic json) {
final map = <String, Permission?>{};
if (json is Map && json.isNotEmpty) {
json.cast<String, dynamic>().forEach(
(key, dynamic value) => map[key] = Permission.fromJson(value));
}
return map;
}