toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (booleanPropertyOptions != null)
        'booleanPropertyOptions': booleanPropertyOptions!,
      if (datePropertyOptions != null)
        'datePropertyOptions': datePropertyOptions!,
      if (displayOptions != null) 'displayOptions': displayOptions!,
      if (doublePropertyOptions != null)
        'doublePropertyOptions': doublePropertyOptions!,
      if (enumPropertyOptions != null)
        'enumPropertyOptions': enumPropertyOptions!,
      if (htmlPropertyOptions != null)
        'htmlPropertyOptions': htmlPropertyOptions!,
      if (integerPropertyOptions != null)
        'integerPropertyOptions': integerPropertyOptions!,
      if (isFacetable != null) 'isFacetable': isFacetable!,
      if (isRepeatable != null) 'isRepeatable': isRepeatable!,
      if (isReturnable != null) 'isReturnable': isReturnable!,
      if (isSortable != null) 'isSortable': isSortable!,
      if (isSuggestable != null) 'isSuggestable': isSuggestable!,
      if (isWildcardSearchable != null)
        'isWildcardSearchable': isWildcardSearchable!,
      if (name != null) 'name': name!,
      if (objectPropertyOptions != null)
        'objectPropertyOptions': objectPropertyOptions!,
      if (textPropertyOptions != null)
        'textPropertyOptions': textPropertyOptions!,
      if (timestampPropertyOptions != null)
        'timestampPropertyOptions': timestampPropertyOptions!,
    };