Class CategoryJsonSerializer

Class CategoryJsonSerializer

This class will serialize and deserialize a Category entity. It can be used into many places where PHP interacts with external requests such as AJAX or API communication.

AbstractJsonSerializer implements SerializerInterface
CategoryJsonSerializer

Methods summary

public serialize( StoredCategoryInterface $object, boolean $encode = true ) : string|array

Serialize a Category object to a JSON string.

public deserialize( string $string, object $baseObject = null ) : CategoryInterface

Deserialize a Category JSON String.

protected _deserializeSettings( CategorySettingsInterface $settings, $json )

Methods inherited from AbstractJsonSerializer

__construct(), _deserializeAddonValues(), _deserializeLanguageSpecificProperty(), _serializeAddonValues(), _serializeLanguageSpecificProperty(), jsonEncode()

Properties summary

Properties inherited from AbstractJsonSerializer

$languageProvider