toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final sortBy = this.sortBy;
  final sortOrder = this.sortOrder;
  return {
    if (sortBy != null) 'SortBy': sortBy,
    if (sortOrder != null) 'SortOrder': sortOrder.toValue(),
  };
}