toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (authorName != null) {
    _json["authorName"] = authorName;
  }
  if (comments != null) {
    _json["comments"] = comments.map((value) => (value).toJson()).toList();
  }
  if (reviewId != null) {
    _json["reviewId"] = reviewId;
  }
  return _json;
}