ReactionCount.fromJson constructor

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

Creates a ReactionCount object from JSON object.

Implementation

factory ReactionCount.fromJson(Map<String, dynamic> json) {
  return ReactionCount(
    type: ReactionType.fromJson(json['type']),
    totalCount: json['total_count'],
  );
}