toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json[r'user_id'] = userId;
  if (postRootId != null) {
    _json[r'post_root_id'] = postRootId;
  }
  return _json;
}