IndexFieldSpec constructor

IndexFieldSpec({
  1. JsonIndexSpecs? jsonSpecs,
  2. CsvIndexSpecs? csvSpecs,
})

Implementation

factory IndexFieldSpec({
  JsonIndexSpecs? jsonSpecs,
  CsvIndexSpecs? csvSpecs,
}) {
  final _result = create();
  if (jsonSpecs != null) {
    _result.jsonSpecs = jsonSpecs;
  }
  if (csvSpecs != null) {
    _result.csvSpecs = csvSpecs;
  }
  return _result;
}