toMap method
Converts the foreign key reference to a map.
Implementation
Map<String, dynamic> toMap() {
return {
'referencedTable': referencedTable,
'referencedColumn': referencedColumn,
if (onDelete != null) 'onDelete': onDelete,
if (onUpdate != null) 'onUpdate': onUpdate,
};
}