fromJson static method

ChangesConfig fromJson(
  1. Map<String, Object?> json
)

Tolerant of everything except a wrong shape. This is read back from a cache file that a previous version of flutterware wrote, so an entry that is not a string is dropped rather than thrown on — the alternative is a screen that refuses to rank because one list had a number in it.

Implementation

static ChangesConfig fromJson(Map<String, Object?> json) => ChangesConfig(
  attention: _strings(json['attention']),
  base: json['base'] as String?,
);