Class CountryJsonSerializer

Class CountryJsonSerializer

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

AbstractJsonSerializer implements SerializerInterface
CountryJsonSerializer

Methods summary

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

Serialize country object to json string.

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

Deserialize country JSON string.

Methods inherited from AbstractJsonSerializer

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

Properties summary

Properties inherited from AbstractJsonSerializer

$languageProvider