Pool constructor

Pool({
  1. String? name,
  2. Iterable<DoubleRangeFilter>? doubleRangeFilters,
  3. Iterable<StringEqualsFilter>? stringEqualsFilters,
  4. Iterable<TagPresentFilter>? tagPresentFilters,
  5. Timestamp? createdBefore,
  6. Timestamp? createdAfter,
})

Implementation

factory Pool({
  $core.String? name,
  $core.Iterable<DoubleRangeFilter>? doubleRangeFilters,
  $core.Iterable<StringEqualsFilter>? stringEqualsFilters,
  $core.Iterable<TagPresentFilter>? tagPresentFilters,
  $7.Timestamp? createdBefore,
  $7.Timestamp? createdAfter,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (doubleRangeFilters != null) {
    _result.doubleRangeFilters.addAll(doubleRangeFilters);
  }
  if (stringEqualsFilters != null) {
    _result.stringEqualsFilters.addAll(stringEqualsFilters);
  }
  if (tagPresentFilters != null) {
    _result.tagPresentFilters.addAll(tagPresentFilters);
  }
  if (createdBefore != null) {
    _result.createdBefore = createdBefore;
  }
  if (createdAfter != null) {
    _result.createdAfter = createdAfter;
  }
  return _result;
}