ChatStatisticsChannel.fromJson constructor
Parse from a json
Implementation
factory ChatStatisticsChannel.fromJson(Map<String, dynamic> json) =>
ChatStatisticsChannel(
period: DateRange.fromJson(json['period']),
memberCount: StatisticalValue.fromJson(json['member_count']),
meanViewCount: StatisticalValue.fromJson(json['mean_view_count']),
meanShareCount: StatisticalValue.fromJson(json['mean_share_count']),
enabledNotificationsPercentage:
json['enabled_notifications_percentage'],
memberCountGraph: StatisticalGraph.fromJson(json['member_count_graph']),
joinGraph: StatisticalGraph.fromJson(json['join_graph']),
muteGraph: StatisticalGraph.fromJson(json['mute_graph']),
viewCountByHourGraph:
StatisticalGraph.fromJson(json['view_count_by_hour_graph']),
viewCountBySourceGraph:
StatisticalGraph.fromJson(json['view_count_by_source_graph']),
joinBySourceGraph:
StatisticalGraph.fromJson(json['join_by_source_graph']),
languageGraph: StatisticalGraph.fromJson(json['language_graph']),
messageInteractionGraph:
StatisticalGraph.fromJson(json['message_interaction_graph']),
instantViewInteractionGraph:
StatisticalGraph.fromJson(json['instant_view_interaction_graph']),
recentMessageInteractions:
List<ChatStatisticsMessageInteractionInfo>.from(
(json['recent_message_interactions'] ?? [])
.map((item) =>
ChatStatisticsMessageInteractionInfo.fromJson(item))
.toList()),
extra: json['@extra'],
clientId: json['@client_id'],
);