CommunityAggregates constructor

const CommunityAggregates({
  1. @JsonKey.new(name: 'id') required int id,
  2. @JsonKey.new(name: 'post_count') @Default.new(0) int postCount,
  3. @JsonKey.new(name: 'post_reply_count') @Default.new(0) int postReplyCount,
  4. @JsonKey.new(name: 'subscriptions_count') @Default.new(0) int subscriptionsCount,
  5. @JsonKey.new(name: 'total_subscriptions_count') int? totalSubscriptionsCount,
  6. @JsonKey.new(name: 'active_daily') @Default.new(0) int activeDaily,
  7. @JsonKey.new(name: 'active_weekly') @Default.new(0) int activeWeekly,
  8. @JsonKey.new(name: 'active_monthly') @Default.new(0) int activeMonthly,
  9. @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;