MastodonTermsOfService class
Terms of service of the instance.
GET /api/v1/instance/terms_of_service
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonTermsOfService({required String effectiveDate, required bool effective, required String content, String? succeededBy})
-
const
-
MastodonTermsOfService.fromJson(Map<
String, dynamic> json) -
factory
Properties
- content → String
-
HTML content of the terms of service.
final
- effective → bool
-
Whether this is the currently effective terms of service.
final
- effectiveDate → String
-
Effective date of the terms of service.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- succeededBy → String?
-
Effective date of a newer terms of service, if one exists.
final
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