Class AbstractJsonSerializer
Abstract Json Serializer
Serializers that extend this class should parse and encode entities so that they can be used in the shop's APIs.
Serialization must follow the "null" approach in order to enhance response clarity. That means that serializers must provide a null value than an empty string or an omitted node.
- AbstractJsonSerializer implements SerializerInterface
Direct known subclasses
AddressJsonSerializer
,
CategoryJsonSerializer
,
SliderJsonSerializer
,
ZoneJsonSerializer
,
CategoryListItemJsonSerializer
,
CountryJsonSerializer
,
CustomerJsonSerializer
,
EmailJsonSerializer
,
OrderJsonSerializer
,
OrderListItemJsonSerializer
,
ProductJsonSerializer
,
ProductListItemJsonSerializer
Package: Extensions\Serializers
Category: System
Located at Extensions/Serializers/AbstractJsonSerializer.inc.php
Methods summary
public
|
|
abstract public
|
|
abstract public
|
|
public
string
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
#
_serializeLanguageSpecificProperty( mixed $object, string $property )
Serialize Language Specific Property |
protected
|
#
_deserializeLanguageSpecificProperty( mixed $object, stdobject $json, string $property, $type = 'StringType' )
Deserialize Language Specific Property |
Properties summary
protected
|
$languageProvider
Used for the resources that require multiple languages. |