toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dynamicFacetableOption != null)
        'dynamicFacetableOption': dynamicFacetableOption!,
      if (exactSearchableOption != null)
        'exactSearchableOption': exactSearchableOption!,
      if (facetConfig != null) 'facetConfig': facetConfig!,
      if (inUse != null) 'inUse': inUse!,
      if (indexableOption != null) 'indexableOption': indexableOption!,
      if (key != null) 'key': key!,
      if (retrievableOption != null) 'retrievableOption': retrievableOption!,
      if (searchableOption != null) 'searchableOption': searchableOption!,
      if (type != null) 'type': type!,
    };