UseTags.fromMap constructor

UseTags.fromMap(
  1. 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);
}