Index constructor

Index({
  1. String? name,
  2. bool? unique,
  3. Map<String, int>? keys,
  4. int? expiresAfterSeconds,
  5. Timestamp? createdAt,
  6. Map<String, PartialFilter>? partialFilter,
  7. bool? ttlEnabled,
  8. bool? compound,
})

Implementation

factory Index({
  $core.String? name,
  $core.bool? unique,
  $core.Map<$core.String, $core.int>? keys,
  $core.int? expiresAfterSeconds,
  $0.Timestamp? createdAt,
  $core.Map<$core.String, PartialFilter>? partialFilter,
  $core.bool? ttlEnabled,
  $core.bool? compound,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (unique != null) {
    _result.unique = unique;
  }
  if (keys != null) {
    _result.keys.addAll(keys);
  }
  if (expiresAfterSeconds != null) {
    _result.expiresAfterSeconds = expiresAfterSeconds;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (partialFilter != null) {
    _result.partialFilter.addAll(partialFilter);
  }
  if (ttlEnabled != null) {
    _result.ttlEnabled = ttlEnabled;
  }
  if (compound != null) {
    _result.compound = compound;
  }
  return _result;
}