toJson method

Json toJson()

Implementation

Json toJson() => {'field': field, if (descending) 'sortOrder': 'descending'};