public function jsonSerialize()
    {
        // @codeCoverageIgnoreStart
        if ( ! $this->originalFilename()) {
            return [];
        }
        // @codeCoverageIgnoreEnd

        $data = [];

        foreach ($this->variants(true) as $variant) {
            $data[ $variant ] = [
                'path' => $this->variantPath($variant),
                'url'  => $this->url($variant)
            ];
        }

        return $data;
    }
public function jsonSerialize()
    {
        // @codeCoverageIgnoreStart
        if ( ! $this->originalFilename()) {
            return [];
        }
        // @codeCoverageIgnoreEnd

        $data = [];

        foreach ($this->variants(true) as $variant) {
            $data[ $variant ] = [
                'path' => $this->variantPath($variant),
                'url'  => $this->url($variant)
            ];
        }

        return $data;
    }
public function jsonSerialize ( ) { // @codeCoverageIgnoreStart if ( ! $ this -> originalFilename ( ) ) { return [ ] ; } // @codeCoverageIgnoreEnd $ data = [ ] ; foreach ( $ this -> variants ( true ) as $ variant ) { $ data [ $ variant ] = [ 'path' => $ this -> variantPath ( $ variant ) , 'url' => $ this -> url ( $ variant ) ] ; } return $ data ; }
Return a JSON representation of this class.

@return array
Return a JSON representation of this class .