ChangelogEntry.fromJson constructor
Deserializes ChangelogEntry from a JSON map.
Implementation
factory ChangelogEntry.fromJson(Map<String, dynamic> json) {
final list = (json['linkedRequests'] as List<dynamic>? ?? [])
.map((r) => ChangelogLinkedRequest.fromJson(r as Map<String, dynamic>))
.toList();
return ChangelogEntry(
id: json['id'] as String? ?? '',
title: json['title'] as String? ?? '',
body: json['body'] as String? ?? '',
versionLabel: json['versionLabel'] as String?,
publishedAt: json['publishedAt'] as String? ?? '',
linkedRequests: list,
);
}