toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dataSourceRestrictions != null)
        'dataSourceRestrictions': dataSourceRestrictions!,
      if (defaultFacetOptions != null)
        'defaultFacetOptions': defaultFacetOptions!,
      if (defaultSortOptions != null)
        'defaultSortOptions': defaultSortOptions!,
      if (displayName != null) 'displayName': displayName!,
      if (enableAuditLog != null) 'enableAuditLog': enableAuditLog!,
      if (name != null) 'name': name!,
      if (operationIds != null) 'operationIds': operationIds!,
      if (queryInterpretationConfig != null)
        'queryInterpretationConfig': queryInterpretationConfig!,
      if (returnResultThumbnailUrls != null)
        'returnResultThumbnailUrls': returnResultThumbnailUrls!,
      if (scoringConfig != null) 'scoringConfig': scoringConfig!,
      if (sourceConfig != null) 'sourceConfig': sourceConfig!,
    };