Class ProductJsonSerializer
Class ProductJsonSerializer
This class will serialize and deserialize a Product entity. It can be used into many places where PHP interacts with external requests such as AJAX or API communication.
- AbstractJsonSerializer implements SerializerInterface
- ┗ ProductJsonSerializer
Package: Extensions\Serializers
Category: System
Located at Extensions/Serializers/ProductJsonSerializer.inc.php
Category: System
Located at Extensions/Serializers/ProductJsonSerializer.inc.php
Methods summary
public
serialize( ProductInterface $object, boolean $encode = true )
: string|array
Serialize a Product object to a JSON string.
public
deserialize( string $string, object $baseObject = null )
: ProductInterface
Deserialize a Product JSON String.
protected
_serializeImages( ProductImageContainerInterface $imageContainer )
: array
Serialize Images
protected
_deserializeSettings( ProductSettingsInterface $settings, $json )
: ProductSettingsInterface
Deserialize Settings
Methods inherited from AbstractJsonSerializer
__construct(),
_deserializeAddonValues(),
_deserializeLanguageSpecificProperty(),
_serializeAddonValues(),
_serializeLanguageSpecificProperty(),
jsonEncode()