toJson method

Map<String, dynamic> toJson()

Converts this SupabaseIndexInfo instance to a JSON map.

This is useful for serialization, for example, when saving schema information to a file.

Implementation

Map<String, dynamic> toJson() => {
  'name': name,
  'originalName': originalName,
  'localName': localName,
  'isUnique': isUnique,
  'columns': columns,
  'originalColumns': originalColumns,
};