OrganizationSettings class
- Annotations
-
- @freezed
Constructors
- OrganizationSettings.new({@JsonKey(name: 'downvotesEnabled', defaultValue: false) @Default(false) bool downvotesEnabled, @JsonKey(name: 'defaultSortingOrder', required: true) required String defaultSortingOrder, @JsonKey(name: 'hideVoteCountUntilVoted', defaultValue: false) @Default(false) bool hideVoteCountUntilVoted})
-
constfactory
-
OrganizationSettings.fromJson(Map<
String, Object?> json) -
factory
Properties
-
copyWith
→ $OrganizationSettingsCopyWith<
OrganizationSettings> -
Create a copy of OrganizationSettings
with the given fields replaced by the non-null parameter values.
no setterinherited
- defaultSortingOrder → String
-
Default sorting order of posts
no setterinherited
- downvotesEnabled → bool
-
Downvotes feature enabled
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideVoteCountUntilVoted → bool
-
Hide vote counts until voted
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this OrganizationSettings to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited