UseTags.fromMap constructor
UseTags.fromMap( - dynamic useTagsMap
)
Implementation
factory UseTags.fromMap(dynamic useTagsMap){
var tList = useTagsMap['tags'] as List<dynamic>;
var tagsList = tList.map((e) => Tag.fromMap(e)).toList();
var cList = useTagsMap['categories'] as List<dynamic>;
var categoriesList = cList.map((e) => Category.fromMap(e)).toList();
return UseTags(
tags: tagsList,
active: useTagsMap["active"] as bool,
clickable: useTagsMap["clickable"] as bool,
categories: categoriesList);
}