toMap method
Converts this DTO to a map suitable for database insertion.
Returns a map with column names as keys. Only non-null/provided fields should be included.
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,
};
}