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