Domain class
Represents a Domain object as is, directly provided from mailtm API
- Annotations
-
- @freezed
Constructors
- Domain({required String id, required String domain, required bool isActive, required bool isPrivate, required DateTime createdAt, required DateTime updatedAt})
-
Domain constructor.
MUST NOT
be used manually Use MailTm andAuthorizedUser
constfactory -
Domain.fromJson(Map<
String, Object?> json) -
Domain jsonizer. Allows freezed to add a from/toJson
factory
Properties
-
copyWith
→ $DomainCopyWith<
Domain> -
no setterinherited
- createdAt → DateTime
-
When the domain was created
no setterinherited
- domain → String
-
Domain as string (example: @mailtm.com)
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Domain's id
no setterinherited
- isActive → bool
-
If the domain is active
no setterinherited
- isPrivate → bool
-
If the domain is private
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → DateTime
-
When the domain was updated
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