Comment.fromJson constructor

Comment.fromJson(
  1. Map _json
)

Implementation

Comment.fromJson(core.Map _json) {
  if (_json.containsKey("assignment")) {
    assignment = new Assignment.fromJson(_json["assignment"]);
  }
  if (_json.containsKey("mentionedUsers")) {
    mentionedUsers = (_json["mentionedUsers"] as core.List)
        .map<User>((value) => new User.fromJson(value))
        .toList();
  }
  if (_json.containsKey("post")) {
    post = new Post.fromJson(_json["post"]);
  }
  if (_json.containsKey("suggestion")) {
    suggestion = new Suggestion.fromJson(_json["suggestion"]);
  }
}