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