Resource::jsonSerialize()

Summary

No summary available.

Source

File: src/BigCommerce/CLI/Resources/Resource.php

	public function jsonSerialize() {
		return [
			'name'        => $this->get_name(),
			'description' => $this->get_description(),
			'thumbnail'   => [
				'small' => $this->get_thumbnail(),
				'large' => $this->get_hires_thumbnail(),
			],
			'url'         => $this->get_url(),
			'categories'  => $this->get_categories(),
			'isExternal'  => (bool) $this->get_external(),
		];
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.