/**
  * Update
  * @param QuickLink $quickLink
  */
 public function updateQuicklink(QuickLink $quickLink)
 {
     $this->webClient->put(MediaSiloResourcePaths::QUICKLINK, $quickLink->toJson());
 }
 public static function fromJson($json)
 {
     $mixed = json_decode($json);
     return QuickLink::fromStdClass($mixed);
 }
 /**
  * Updates a QuickLink in MediaSilo
  *
  * @param String $id UUID of quicklink to update
  * @param String $title Title for the Quicklink
  * @param String $description Description for the Quicklink
  * @param Array $assetIds Array of Asset ID to be included in quicklink
  * @param Array $settings Key/Value associative array of settings
  * @param String $expires timestamp
  * @return Void
  */
 public function updateQuickLink($id, $title = null, $description = null, array $assetIds = null, array $settings = null, $expires = null)
 {
     $assets = null;
     $configuration = null;
     if (is_array($settings)) {
         $newSettings = array();
         foreach ($settings as $key => $value) {
             array_push($newSettings, new Setting((string) $key, (string) $value));
         }
         $configuration = new Configuration(null, $newSettings);
     } else {
         $configuration = new Configuration(null, null);
     }
     if (is_array($assetIds)) {
         $assets = $assetIds;
     }
     $quickLink = new QuickLink($assets, $configuration, $description, array(), $title);
     $quickLink->expires = $expires;
     $quickLink->setId($id);
     $this->quicklinkProxy->updateQuicklink($quickLink);
 }