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 (assignment != null) {
    _json["assignment"] = (assignment).toJson();
  }
  if (mentionedUsers != null) {
    _json["mentionedUsers"] =
        mentionedUsers.map((value) => (value).toJson()).toList();
  }
  if (post != null) {
    _json["post"] = (post).toJson();
  }
  if (suggestion != null) {
    _json["suggestion"] = (suggestion).toJson();
  }
  return _json;
}