toMap method Null safety

Map<String, dynamic> toMap()

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(),
    };