toMap method

Map toMap ()

SortBy => map

Implementation

Map toMap() {
  return {"fieldName": this.fieldName, "sortType": this.sortType?.index};
}