Category.fromMap constructor
- dynamic categoryMap
Implementation
factory Category.fromMap(dynamic categoryMap){
return Category(
name: categoryMap["name"] as String,
slug: categoryMap["slug"] as String
);
}
factory Category.fromMap(dynamic categoryMap){
return Category(
name: categoryMap["name"] as String,
slug: categoryMap["slug"] as String
);
}