PackageInfo constructor

PackageInfo({
  1. String? organizationId,
  2. String? name,
  3. String? version,
  4. PackageType? type,
  5. Iterable<FileInfo>? files,
  6. Struct? metadata,
  7. String? platform,
})

Implementation

factory PackageInfo({
  $core.String? organizationId,
  $core.String? name,
  $core.String? version,
  PackageType? type,
  $core.Iterable<FileInfo>? files,
  $43.Struct? metadata,
  $core.String? platform,
}) {
  final $result = create();
  if (organizationId != null) {
    $result.organizationId = organizationId;
  }
  if (name != null) {
    $result.name = name;
  }
  if (version != null) {
    $result.version = version;
  }
  if (type != null) {
    $result.type = type;
  }
  if (files != null) {
    $result.files.addAll(files);
  }
  if (metadata != null) {
    $result.metadata = metadata;
  }
  if (platform != null) {
    $result.platform = platform;
  }
  return $result;
}