Post.fromJson constructor
Implementation
Post.fromJson(Map<String, dynamic> json)
: to = convertToStringList(json["to"]),
name = json["name"],
summary = json["summary"],
sensitive = json["sensitive"],
inReplyTo = json["inReplyTo"],
content = json["content"],
id = json["id"],
type = json["type"],
published = DateTime.parse(json["published"]),
attributedTo = json["attributedTo"],
attachment = toListOfDocuments(json["attachment"]),
replies = json["replies"] == null
? null
: Collection.fromJson(json["replies"]);