toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final defaultValue = this.defaultValue;
  final facetEnabled = this.facetEnabled;
  final returnEnabled = this.returnEnabled;
  final searchEnabled = this.searchEnabled;
  final sortEnabled = this.sortEnabled;
  final sourceField = this.sourceField;
  return {
    if (defaultValue != null) 'DefaultValue': defaultValue,
    if (facetEnabled != null) 'FacetEnabled': facetEnabled,
    if (returnEnabled != null) 'ReturnEnabled': returnEnabled,
    if (searchEnabled != null) 'SearchEnabled': searchEnabled,
    if (sortEnabled != null) 'SortEnabled': sortEnabled,
    if (sourceField != null) 'SourceField': sourceField,
  };
}