get static method

Feature get(
  1. Map map
)

Implementation

static Feature get(Map map) {
  String type = map["\$type"];
  if (type == mention) {
    return Mention(type, map["did"]);
  } else if (type == link) {
    return Link(type, map["uri"]);
  } else {
    return Tag(type, map["tag"]);
  }
}