CommunityView constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const CommunityView({
  1. required CommunitySafe community,
  2. required bool subscribed,
  3. required bool blocked,
  4. required CommunityAggregates counts,
  5. required String instanceHost,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory CommunityView({
  required CommunitySafe community,
  required bool subscribed,
  required bool blocked,
  required CommunityAggregates counts,
  required String instanceHost,
}) = _CommunityView;