ReleaseNotes.fromJson constructor

ReleaseNotes.fromJson(
  1. Map<String, dynamic> json
)

Parses release notes from a simple { "data": [...] } object or the rich canonical sections shape.

Implementation

factory ReleaseNotes.fromJson(Map<String, dynamic> json) {
  if (json.containsKey("data")) {
    return _fromSimpleData(json);
  }
  return _fromRichSections(json);
}