toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "period": period.toJson(),
    "member_count": memberCount.toJson(),
    "mean_view_count": meanViewCount.toJson(),
    "mean_share_count": meanShareCount.toJson(),
    "enabled_notifications_percentage": enabledNotificationsPercentage,
    "member_count_graph": memberCountGraph.toJson(),
    "join_graph": joinGraph.toJson(),
    "mute_graph": muteGraph.toJson(),
    "view_count_by_hour_graph": viewCountByHourGraph.toJson(),
    "view_count_by_source_graph": viewCountBySourceGraph.toJson(),
    "join_by_source_graph": joinBySourceGraph.toJson(),
    "language_graph": languageGraph.toJson(),
    "message_interaction_graph": messageInteractionGraph.toJson(),
    "instant_view_interaction_graph": instantViewInteractionGraph.toJson(),
    "recent_message_interactions": recentMessageInteractions.map((i) => i.toJson()).toList(),
  };
}