toMap method
Converts this partial to a map with column names as keys.
Only non-null fields are included in the returned map. This is useful for building WHERE clauses from partial instances.
Example
final partial = $UserPartial(id: 1, email: 'alice@example.com');
final map = partial.toMap();
// {'id': 1, 'email': 'alice@example.com'}
Implementation
@override
Map<String, Object?> toMap() {
return {if (id != null) 'id': id, if (name != null) 'name': name};
}