toMap method Null safety
Returns the domain as a Map
Implementation
Map<String, dynamic> toMap() => {
'id': id,
'domain': domain,
'isActive': isActive,
'isPrivate': isPrivate,
'createdAt': createdAt.toIso8601String(),
'updatedAt': updatedAt.toIso8601String(),
};