Index constructor
Index({})
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;
}