Record constructor
Record(
- Map map
Implementation
Record(Map map)
: text = map["text"],
type = map["\$type"],
langs = map["langs"],
facets = map["facets"] == null ? null : Facet.list(map["facets"]),
labels = map["labels"] == null ? null : SelfLabels(map["labels"]),
tags = map["tags"],
reply = map["reply"] == null ? null : RecordReply(map["reply"]),
embed = map["embed"] == null ? null : RecordEmbed(map["embed"]),
createdAt = DateTime.parse((map["createdAt"]));