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