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,
ReviewJsonSerializer,
SliderJsonSerializer,
WithdrawalJsonSerializer,
ZoneJsonSerializer,
CategoryListItemJsonSerializer,
CountryJsonSerializer,
CustomerJsonSerializer,
EmailJsonSerializer,
OrderJsonSerializer,
OrderListItemJsonSerializer,
ProductJsonSerializer,
ProductListItemJsonSerializer
Package: Extensions\Serializers
Category: System
Located at Extensions/Serializers/AbstractJsonSerializer.inc.php
Methods summary
protected
_serializeLanguageSpecificProperty( mixed $object, string $property )
: array
Serialize Language Specific Property
protected
_deserializeLanguageSpecificProperty( mixed $object, stdobject $json, string $property, $type = 'StringType' )
Deserialize Language Specific Property
Properties summary
protected
$languageProvider
: LanguageProviderInterface
Used for the resources that require multiple languages.