toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'chatStatisticsChannel',
    if (extra != null) '@extra': extra,
    'period': period,
    'member_count': member_count,
    'mean_view_count': mean_view_count,
    'mean_share_count': mean_share_count,
    'enabled_notifications_percentage': enabled_notifications_percentage,
    'member_count_graph': member_count_graph,
    'join_graph': join_graph,
    'mute_graph': mute_graph,
    'view_count_by_hour_graph': view_count_by_hour_graph,
    'view_count_by_source_graph': view_count_by_source_graph,
    'join_by_source_graph': join_by_source_graph,
    'language_graph': language_graph,
    'message_interaction_graph': message_interaction_graph,
    'instant_view_interaction_graph': instant_view_interaction_graph,
    'recent_message_interactions': recent_message_interactions
  };
}