toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (replyCount != null) {
    _json[r'reply_count'] = replyCount;
  }
  if (lastReplyAt != null) {
    _json[r'last_reply_at'] = lastReplyAt;
  }
  if (lastViewedAt != null) {
    _json[r'last_viewed_at'] = lastViewedAt;
  }
  _json[r'participants'] = participants;
  if (post != null) {
    _json[r'post'] = post;
  }
  return _json;
}