GetPackageRequest constructor

GetPackageRequest({
  1. String? id,
  2. String? version,
  3. bool? includeUrl,
  4. PackageType? type,
  5. String? platform,
})

Implementation

factory GetPackageRequest({
  $core.String? id,
  $core.String? version,
  $core.bool? includeUrl,
  PackageType? type,
  $core.String? platform,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (version != null) {
    $result.version = version;
  }
  if (includeUrl != null) {
    $result.includeUrl = includeUrl;
  }
  if (type != null) {
    $result.type = type;
  }
  if (platform != null) {
    $result.platform = platform;
  }
  return $result;
}