Class ProductListItemJsonSerializer

Class ProductListItemJsonSerializer

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

AbstractJsonSerializer implements SerializerInterface
ProductListItemJsonSerializer

Methods summary

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

Serialize an ProductListItem object to a JSON string.

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

Deserialize method is not used by the api.

Methods inherited from AbstractJsonSerializer

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

Properties summary

Properties inherited from AbstractJsonSerializer

$languageProvider