toJson method

Map<String, dynamic> toJson()

Converts a ReactionCount object to JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type.toJson(),
    'total_count': totalCount,
  };
}