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 sourceFields = this.sourceFields;
  return {
    if (defaultValue != null) 'DefaultValue': defaultValue,
    if (facetEnabled != null) 'FacetEnabled': facetEnabled,
    if (returnEnabled != null) 'ReturnEnabled': returnEnabled,
    if (searchEnabled != null) 'SearchEnabled': searchEnabled,
    if (sourceFields != null) 'SourceFields': sourceFields,
  };
}