Facts.fromMap constructor Null safety
Construct Facts from a Map containing all fields for a number of Fact.
Implementation
Facts.fromMap(Map<String, dynamic>? map) {
for (Map<String, dynamic>? fact in map?["edges"]) {
facts.add(Fact.fromMap(fact?["node"]));
}
}