CommunityAggregates constructor
const
CommunityAggregates({
- @JsonKey.new(name: 'id') required int id,
- @JsonKey.new(name: 'post_count') @Default.new(0) int postCount,
- @JsonKey.new(name: 'post_reply_count') @Default.new(0) int postReplyCount,
- @JsonKey.new(name: 'subscriptions_count') @Default.new(0) int subscriptionsCount,
- @JsonKey.new(name: 'total_subscriptions_count') int? totalSubscriptionsCount,
- @JsonKey.new(name: 'active_daily') @Default.new(0) int activeDaily,
- @JsonKey.new(name: 'active_weekly') @Default.new(0) int activeWeekly,
- @JsonKey.new(name: 'active_monthly') @Default.new(0) int activeMonthly,
- @JsonKey.new(name: 'active_6monthly') @Default.new(0) int active6monthly,
Implementation
const factory CommunityAggregates({
@JsonKey(name: 'id') required int id,
@JsonKey(name: 'post_count') @Default(0) int postCount,
@JsonKey(name: 'post_reply_count') @Default(0) int postReplyCount,
@JsonKey(name: 'subscriptions_count') @Default(0) int subscriptionsCount,
@JsonKey(name: 'total_subscriptions_count') int? totalSubscriptionsCount,
@JsonKey(name: 'active_daily') @Default(0) int activeDaily,
@JsonKey(name: 'active_weekly') @Default(0) int activeWeekly,
@JsonKey(name: 'active_monthly') @Default(0) int activeMonthly,
@JsonKey(name: 'active_6monthly') @Default(0) int active6monthly,
}) = _CommunityAggregates;