code: public String getImageUrl() {
      if (thumbnailUrl != null) {
        return thumbnailUrl;
      }
  
      if (image != null) {
        return image.url;
      }
  
      return null;
    }
docs: Get the image URL - uses the thumbnail if set, then the main image, otherwise returns null.