RegistryItem constructor

RegistryItem({
  1. String? itemId,
  2. String? organizationId,
  3. String? publicNamespace,
  4. String? name,
  5. PackageType? type,
  6. Visibility? visibility,
  7. String? url,
  8. String? description,
  9. Int64? totalRobotUsage,
  10. Int64? totalOrganizationUsage,
  11. ModuleMetadata? moduleMetadata,
  12. MLModelMetadata? mlModelMetadata,
  13. Int64? totalExternalRobotUsage,
  14. Int64? totalExternalOrganizationUsage,
  15. Timestamp? createdAt,
  16. Timestamp? updatedAt,
  17. MLTrainingMetadata? mlTrainingMetadata,
})

Implementation

factory RegistryItem({
  $core.String? itemId,
  $core.String? organizationId,
  $core.String? publicNamespace,
  $core.String? name,
  $8.PackageType? type,
  Visibility? visibility,
  $core.String? url,
  $core.String? description,
  $fixnum.Int64? totalRobotUsage,
  $fixnum.Int64? totalOrganizationUsage,
  ModuleMetadata? moduleMetadata,
  MLModelMetadata? mlModelMetadata,
  $fixnum.Int64? totalExternalRobotUsage,
  $fixnum.Int64? totalExternalOrganizationUsage,
  $44.Timestamp? createdAt,
  $44.Timestamp? updatedAt,
  MLTrainingMetadata? mlTrainingMetadata,
}) {
  final $result = create();
  if (itemId != null) {
    $result.itemId = itemId;
  }
  if (organizationId != null) {
    $result.organizationId = organizationId;
  }
  if (publicNamespace != null) {
    $result.publicNamespace = publicNamespace;
  }
  if (name != null) {
    $result.name = name;
  }
  if (type != null) {
    $result.type = type;
  }
  if (visibility != null) {
    $result.visibility = visibility;
  }
  if (url != null) {
    $result.url = url;
  }
  if (description != null) {
    $result.description = description;
  }
  if (totalRobotUsage != null) {
    $result.totalRobotUsage = totalRobotUsage;
  }
  if (totalOrganizationUsage != null) {
    $result.totalOrganizationUsage = totalOrganizationUsage;
  }
  if (moduleMetadata != null) {
    $result.moduleMetadata = moduleMetadata;
  }
  if (mlModelMetadata != null) {
    $result.mlModelMetadata = mlModelMetadata;
  }
  if (totalExternalRobotUsage != null) {
    $result.totalExternalRobotUsage = totalExternalRobotUsage;
  }
  if (totalExternalOrganizationUsage != null) {
    $result.totalExternalOrganizationUsage = totalExternalOrganizationUsage;
  }
  if (createdAt != null) {
    $result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    $result.updatedAt = updatedAt;
  }
  if (mlTrainingMetadata != null) {
    $result.mlTrainingMetadata = mlTrainingMetadata;
  }
  return $result;
}