MastodonAccountCreateRequest class

Parameters for an account registration request.

Corresponds to the request body for POST /api/v1/accounts.

Constructors

MastodonAccountCreateRequest({required String username, required String email, required String password, required bool agreement, required String locale, String? reason, String? dateOfBirth})
Creates parameters for an account registration request.
const

Properties

agreement bool
Agreement to the server's terms of service.
final
dateOfBirth String?
Date of birth (YYYY-MM-DD format).
final
email String
Email address.
final
hashCode int
The hash code for this object.
no setterinherited
locale String
Locale of the user (ISO 639-1 format).
final
password String
Password.
final
reason String?
Reason for registration (may be required on approval-based instances).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
Desired username.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON map for the request body.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited