ListRegistryItemsRequest constructor

ListRegistryItemsRequest({
  1. String? organizationId,
  2. Iterable<PackageType>? types,
  3. Iterable<Visibility>? visibilities,
  4. Iterable<String>? platforms,
  5. Iterable<RegistryItemStatus>? statuses,
  6. String? searchTerm,
  7. String? pageToken,
  8. Iterable<String>? publicNamespaces,
})

Implementation

factory ListRegistryItemsRequest({
  $core.String? organizationId,
  $core.Iterable<$8.PackageType>? types,
  $core.Iterable<Visibility>? visibilities,
  $core.Iterable<$core.String>? platforms,
  $core.Iterable<RegistryItemStatus>? statuses,
  $core.String? searchTerm,
  $core.String? pageToken,
  $core.Iterable<$core.String>? publicNamespaces,
}) {
  final $result = create();
  if (organizationId != null) {
    $result.organizationId = organizationId;
  }
  if (types != null) {
    $result.types.addAll(types);
  }
  if (visibilities != null) {
    $result.visibilities.addAll(visibilities);
  }
  if (platforms != null) {
    $result.platforms.addAll(platforms);
  }
  if (statuses != null) {
    $result.statuses.addAll(statuses);
  }
  if (searchTerm != null) {
    $result.searchTerm = searchTerm;
  }
  if (pageToken != null) {
    $result.pageToken = pageToken;
  }
  if (publicNamespaces != null) {
    $result.publicNamespaces.addAll(publicNamespaces);
  }
  return $result;
}