Domain class Null safety

MailGw domains.

Constructors

Domain({required String id, required String domain, required bool isActive, required DateTime createdAt, required DateTime updatedAt})
const

Properties

createdAt DateTime
When the domain was created
final
domain String
Domain as string (example: @mailgw.com)
final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Domain's id
final
isActive bool
If the domain is active
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
updatedAt DateTime
When the domain was updated
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Returns the domain as a Map
toString() String
Stringifies the domain
override

Operators

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

Static Properties

domains Future<List<Domain>>
Returns all the domains
read-only