toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final displayable = this.displayable;
  final facetable = this.facetable;
  final searchable = this.searchable;
  final sortable = this.sortable;
  return {
    if (displayable != null) 'Displayable': displayable,
    if (facetable != null) 'Facetable': facetable,
    if (searchable != null) 'Searchable': searchable,
    if (sortable != null) 'Sortable': sortable,
  };
}