Account class
Represents an Account object as is, directly provided from mailtm API
- Annotations
-
- @freezed
Constructors
- Account({required String id, required String address, required int quota, required int used, required bool isDisabled, required bool isDeleted, required DateTime createdAt, required DateTime updatedAt})
-
Account constructor.
MUST NOT
be used manually Use MailTm andAuthorizedUser
constfactory -
Account.fromJson(Map<
String, Object?> json) -
Account jsonizer. Allows freezed to add a from/toJson
factory
Properties
- address → String
-
Account's address.
no setterinherited
-
copyWith
→ $AccountCopyWith<
Account> -
no setterinherited
- createdAt → DateTime
-
Account creation date
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Account's id.
no setterinherited
- isDeleted → bool
-
Whenever the account is deleted.
no setterinherited
- isDisabled → bool
-
Whether the account is active or not.
no setterinherited
- quota → int
-
Account's quota (To store message data).
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → DateTime
-
Account update date
no setterinherited
- used → int
-
Account's quota used.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited