Review.fromJson constructor

Review.fromJson(Map _json)

Implementation

Review.fromJson(core.Map _json) {
  if (_json.containsKey("authorName")) {
    authorName = _json["authorName"];
  }
  if (_json.containsKey("comments")) {
    comments = (_json["comments"] as core.List)
        .map<Comment>((value) => new Comment.fromJson(value))
        .toList();
  }
  if (_json.containsKey("reviewId")) {
    reviewId = _json["reviewId"];
  }
}