MastodonPollsConfiguration class
Poll limits (configuration.polls).
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonPollsConfiguration({required int maxOptions, required int maxCharactersPerOption, required int minExpiration, required int maxExpiration})
-
const
-
MastodonPollsConfiguration.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxCharactersPerOption → int
-
Maximum character count per option.
final
- maxExpiration → int
-
Maximum poll duration in seconds.
final
- maxOptions → int
-
Maximum number of poll options.
final
- minExpiration → int
-
Minimum poll duration in seconds.
final
- 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 to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited