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