private function getJsonCastValue($value)
    {
        return method_exists($this, 'fromJson') ? $this->fromJson($value) : json_decode($value, true);
    }
private function getJsonCastValue($value)
    {
        return method_exists($this, 'fromJson') ? $this->fromJson($value) : json_decode($value, true);
    }
private function getJsonCastValue ( $ value ) { return method_exists ( $ this , 'fromJson' ) ? $ this -> fromJson ( $ value ) : json_decode ( $ value , true ) ; }
Return value of the json-encoded value as a native PHP type

@param  mixed $value

@return string
Return value of the json - encoded value as a native PHP type