toJson method
Implementation
Map<String, dynamic> toJson() {
final indexFieldName = this.indexFieldName;
final indexFieldType = this.indexFieldType;
final literalOptions = this.literalOptions;
final sourceAttributes = this.sourceAttributes;
final textOptions = this.textOptions;
final uIntOptions = this.uIntOptions;
return {
'IndexFieldName': indexFieldName,
'IndexFieldType': indexFieldType.toValue(),
if (literalOptions != null) 'LiteralOptions': literalOptions,
if (sourceAttributes != null) 'SourceAttributes': sourceAttributes,
if (textOptions != null) 'TextOptions': textOptions,
if (uIntOptions != null) 'UIntOptions': uIntOptions,
};
}