toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json[r'channel_id'] = channelId;
  if (parentId != null) {
    _json[r'parent_id'] = parentId;
  }
  return _json;
}