public function toContainer()
    {
        $value = $this->value();

        if ( ! $this->isFile() || ! $this->isJson() || ! $this->isSerialized())
        {
            $value = [$value];
        }

        return new Container($value);
    }
public function toContainer()
    {
        $value = $this->value();

        if ( ! $this->isFile() || ! $this->isJson() || ! $this->isSerialized())
        {
            $value = [$value];
        }

        return new Container($value);
    }
public function toContainer ( ) { $ value = $ this -> value ( ) ; if ( ! $ this -> isFile ( ) || ! $ this -> isJson ( ) || ! $ this -> isSerialized ( ) ) { $ value = [ $ value ] ; } return new Container ( $ value ) ; }
Convert String Type to Container Type.
If String is proper json, serialized or file path with json or serialized
than it will grab contents decode it and construct Container from it.

@return \im\Primitive\Container\Container
Convert String Type to Container Type . If String is proper json serialized or file path with json or serialized than it will grab contents decode it and construct Container from it .