public function jsonSerialize()
    {
        return [
            'id' => $this->id,
            'size' => $this->size,
            'link' => $this->link,
            'title' => $this->title,
            'caption' => $this->caption,
            'description' => $this->description,
            'type' => $this->type,
            'mimeType' => $this->mime_type,
            'meta' => $this->meta,
            'width' => $this->width,
            'height' => $this->height,
        ];
    }
public function jsonSerialize()
    {
        return [
            'id' => $this->id,
            'size' => $this->size,
            'link' => $this->link,
            'title' => $this->title,
            'caption' => $this->caption,
            'description' => $this->description,
            'type' => $this->type,
            'mimeType' => $this->mime_type,
            'meta' => $this->meta,
            'width' => $this->width,
            'height' => $this->height,
        ];
    }
public function jsonSerialize ( ) { return [ 'id' => $ this -> id , 'size' => $ this -> size , 'link' => $ this -> link , 'title' => $ this -> title , 'caption' => $ this -> caption , 'description' => $ this -> description , 'type' => $ this -> type , 'mimeType' => $ this -> mime_type , 'meta' => $ this -> meta , 'width' => $ this -> width , 'height' => $ this -> height , ] ; }
Handle json encoding.

@return array
Handle json encoding .