toMap method
Converts this DTO to a map suitable for database updates.
Returns a map with column names as keys. Only fields that were explicitly set should be included, allowing partial updates.
Implementation
@override
Map<String, Object?> toMap() {
return <String, Object?>{
if (id != null) 'id': id,
if (checksum != null) 'checksum': checksum,
if (appliedAt != null) 'applied_at': appliedAt,
if (batch != null) 'batch': batch,
};
}