Class CustomerJsonSerializer

Class CustomerJsonSerializer

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

AbstractJsonSerializer implements SerializerInterface
CustomerJsonSerializer

Methods summary

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

Serialize customer object to json string.

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

Deserialize customer JSON string.

Methods inherited from AbstractJsonSerializer

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

Properties summary

Properties inherited from AbstractJsonSerializer

$languageProvider