Convert the sort descriptor to JSON.
Map<String, dynamic> toJSON() => { 'fieldName': _fieldName, 'ascending': _ascending };