Tag.fromMap constructor

Tag.fromMap(
  1. dynamic tagMap
)

Implementation

factory Tag.fromMap(dynamic tagMap){
  return Tag(
      name: tagMap["name"] as String,
      icon: tagMap["icon"] as String?,
      slug: tagMap["slug"] as String,
      color: tagMap["color"] as String,
      category: tagMap["category"] as String?,
      visibility: tagMap["visibility"] as String?
  );
}