toJson method
Implementation
Map<String, Object?> toJson() => {
'name': name,
'columns': columns,
if (schema != null) 'schema': schema,
if (tableName != null) 'tableName': tableName,
if (unique) 'unique': true,
if (primary) 'primary': true,
if (method != null) 'method': method,
if (whereClause != null) 'whereClause': whereClause,
if (type != null) 'type': type,
if (sparse) 'sparse': true,
};