toJson method
Implementation
@override
Object toJson() => {
if (select case final select?) 'select': select.toJson(),
if (from.isNotDefault) 'from': [for (final i in from) i.toJson()],
if (where case final where?) 'where': where.toJson(),
if (orderBy.isNotDefault) 'orderBy': [for (final i in orderBy) i.toJson()],
if (startAt case final startAt?) 'startAt': startAt.toJson(),
if (endAt case final endAt?) 'endAt': endAt.toJson(),
if (offset.isNotDefault) 'offset': offset,
if (limit case final limit?) 'limit': limit.toJson(),
if (findNearest case final findNearest?)
'findNearest': findNearest.toJson(),
};