Class AddressJsonSerializer

Class AddressJsonSerializer

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

AbstractJsonSerializer implements SerializerInterface
AddressJsonSerializer

Methods summary

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

Serialize address object to JSON string.

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

Deserialize address JSON string.

Methods inherited from AbstractJsonSerializer

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

Properties summary

Properties inherited from AbstractJsonSerializer

$languageProvider