fromJson static method

MessageStatistics? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static MessageStatistics? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return MessageStatistics(
    messageInteractionGraph: StatisticalGraph.fromJson(
      tdMapFromJson(json['message_interaction_graph']),
    ),
    messageReactionGraph: StatisticalGraph.fromJson(
      tdMapFromJson(json['message_reaction_graph']),
    ),
  );
}