ReactionCount constructor
const
ReactionCount({
- @JsonKey(name: 'type') required ReactionType type,
- @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;