<?php
namespace Claromentis\Core\Ai\Adapters\Vertex\Responses\Text;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] ?: array()) + array("_50f3d86f" . "340336be6" . "72ef20f6b" . "0f501c" => base64_decode("Ymx" . "vY2" . "tlZ" . "A=="), "_c3492cfbadbaead5d251" . "2469c3eb908e" => base64_decode("Y2F0Z" . "Wdvcn" . "k="), "_9b5a68836f2ef96" . "77cb3698d9d6970d" . "7" => base64_decode("cHJvYmFiaWx" . "pdHk="), "_1823ae552828b" . "d96a3cc48a754e" . "f9a1c" => base64_decode("aGFybV9wcm9i" . "YWJpbGl0eQ=="));
use Claromentis\Core\Ai\Adapters\Vertex\Helpers\VertexAiHarmCategory;
use Claromentis\Core\Ai\Adapters\Vertex\Helpers\VertexAiHarmProbability;






class VertexAiSafetyRating
{
    
    
    
    
    
    
    private ?string $harm_category;
    
    
    
    
    
    
    private ?string $harm_probability;
    
    
    
    
    
    
    private bool $blocked;
    
    
    
    
    
    
    
    
    public function __construct(?string $_44405ea1803d1ecc8fa0635b314fc1b0, ?string $_1823ae552828bd96a3cc48a754ef9a1c, bool $_50f3d86f340336be672ef20f6b0f501c)
    {
        $this->harm_category = $_44405ea1803d1ecc8fa0635b314fc1b0;
        $this->harm_probability = $_1823ae552828bd96a3cc48a754ef9a1c;
        $this->blocked = $_50f3d86f340336be672ef20f6b0f501c;
    }
    
    
    
    
    
    
    
    public static function fromArray(array $_fd62bc4eaaf7d58dea9bada3e30443b9)
    {
        return new self(VertexAiHarmCategory::find($_fd62bc4eaaf7d58dea9bada3e30443b9[$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_c3492cf" . "badbaead" . "5d251246" . "9c3eb908" . "e"]]), VertexAiHarmProbability::find($_fd62bc4eaaf7d58dea9bada3e30443b9[$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_9b5a68836f2ef9677cb" . "3698d9d6970d7"]]), $_fd62bc4eaaf7d58dea9bada3e30443b9[$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_50f3d86f340336be672ef20f6b0f50" . "1c"]] ?? false);
    }
    
    
    
    
    
    
    public function serialise()
    {
        return [$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_c3492cfbadbaead5d" . "2512469c3eb908e"] => $this->harm_category, $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_1823ae552828bd96a3cc48a" . "754ef9a1c"] => $this->harm_probability, $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_50f3d86f340336be" . "672ef20f6b0f501c"] => $this->blocked];
    }
}