toMap method

Map<String, dynamic> toMap()

Converts this foreign key info to a map representation.

Implementation

Map<String, dynamic> toMap() {
  return {
    'referencedTable': referencedTable,
    'referencedColumn': referencedColumn,
    if (onDelete != null) 'onDelete': onDelete,
    if (onUpdate != null) 'onUpdate': onUpdate,
  };
}