fromJson static method
Implementation
static ChatStatisticsInteractionInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ChatStatisticsInteractionInfo(
objectType: ChatStatisticsObjectType.fromJson(
tdMapFromJson(json['object_type']),
),
viewCount: (json['view_count'] as int?) ?? 0,
forwardCount: (json['forward_count'] as int?) ?? 0,
reactionCount: (json['reaction_count'] as int?) ?? 0,
);
}