LinkGroup.fromJson constructor
Implementation
factory LinkGroup.fromJson(Map<String, Object?> json) {
return LinkGroup(
groups: (json[r'groups'] as List<Object?>?)
?.map((i) =>
LinkGroup.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
header: json[r'header'] != null
? SimpleLink.fromJson(json[r'header']! as Map<String, Object?>)
: null,
id: json[r'id'] as String?,
links: (json[r'links'] as List<Object?>?)
?.map((i) =>
SimpleLink.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
styleClass: json[r'styleClass'] as String?,
weight: (json[r'weight'] as num?)?.toInt(),
);
}