EducationArticle.fromMap constructor
- Map map
Generate an EducationArticle from a map, used when retrieving data from the database
Implementation
factory EducationArticle.fromMap(Map<dynamic, dynamic> map) {
return EducationArticle(
dateAdded: map["dateAdded"],
description: map["description"],
//image: 'none',
image: map["image"],
title: map["title"],
url: map["url"],
);
}