ReactionCount constructor

const ReactionCount({
  1. @JsonKey(name: 'type') required ReactionType type,
  2. @JsonKey(name: 'total_count') required int totalCount,
})

Creates a new instance of ReactionCount.

Implementation

const factory ReactionCount({
  /// Type of the reaction.
  @JsonKey(name: 'type') required ReactionType type,

  /// Number of times the reaction was added.
  @JsonKey(name: 'total_count') required int totalCount,
}) = _ReactionCount;