toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final indexFieldName = this.indexFieldName;
  final indexFieldType = this.indexFieldType;
  final dateArrayOptions = this.dateArrayOptions;
  final dateOptions = this.dateOptions;
  final doubleArrayOptions = this.doubleArrayOptions;
  final doubleOptions = this.doubleOptions;
  final intArrayOptions = this.intArrayOptions;
  final intOptions = this.intOptions;
  final latLonOptions = this.latLonOptions;
  final literalArrayOptions = this.literalArrayOptions;
  final literalOptions = this.literalOptions;
  final textArrayOptions = this.textArrayOptions;
  final textOptions = this.textOptions;
  return {
    'IndexFieldName': indexFieldName,
    'IndexFieldType': indexFieldType.toValue(),
    if (dateArrayOptions != null) 'DateArrayOptions': dateArrayOptions,
    if (dateOptions != null) 'DateOptions': dateOptions,
    if (doubleArrayOptions != null) 'DoubleArrayOptions': doubleArrayOptions,
    if (doubleOptions != null) 'DoubleOptions': doubleOptions,
    if (intArrayOptions != null) 'IntArrayOptions': intArrayOptions,
    if (intOptions != null) 'IntOptions': intOptions,
    if (latLonOptions != null) 'LatLonOptions': latLonOptions,
    if (literalArrayOptions != null)
      'LiteralArrayOptions': literalArrayOptions,
    if (literalOptions != null) 'LiteralOptions': literalOptions,
    if (textArrayOptions != null) 'TextArrayOptions': textArrayOptions,
    if (textOptions != null) 'TextOptions': textOptions,
  };
}