public function deserializeJSON($jsonString)
    {
        $data = \json_decode($jsonString);

        $this->clear();

        foreach ($data as $v) {

            $part = new EmailBodyPart();
            $part->updateFromObject($v);

            $this->add($v);
        }
    }
public function deserializeJSON($jsonString)
    {
        $data = \json_decode($jsonString);

        $this->clear();

        foreach ($data as $v) {

            $part = new EmailBodyPart();
            $part->updateFromObject($v);

            $this->add($v);
        }
    }
public function deserializeJSON ( $ jsonString ) { $ data = \ json_decode ( $ jsonString ) ; $ this -> clear ( ) ; foreach ( $ data as $ v ) { $ part = new EmailBodyPart ( ) ; $ part -> updateFromObject ( $ v ) ; $ this -> add ( $ v ) ; } }
Updates the element implementing this interface using a JSON representation.
This means updating the state of this object with that defined in the JSON
as opposed to returning a new instance of this object.

@param string $jsonString Representation of the object

@return void
Updates the element implementing this interface using a JSON representation . This means updating the state of this object with that defined in the JSON as opposed to returning a new instance of this object .