toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json[r'id'] = id;
  if (isPinned != null) {
    _json[r'is_pinned'] = isPinned;
  }
  if (message != null) {
    _json[r'message'] = message;
  }
  if (hasReactions != null) {
    _json[r'has_reactions'] = hasReactions;
  }
  if (props != null) {
    _json[r'props'] = props;
  }
  return _json;
}