toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'chatStatisticsMessageInteractionInfo',
    if (extra != null) '@extra': extra,
    'message_id': message_id,
    'view_count': view_count,
    'forward_count': forward_count
  };
}