src/Model/StripeLocalSubscription.php
public function metadataTransformer()
    {
        if (is_string($this->getMetadata())) {
            $this->setMetadata(json_decode($this->getMetadata(), true));
        }
    }
public function metadataTransformer()
    {
        if (is_string($this->getMetadata())) {
            $this->setMetadata(json_decode($this->getMetadata(), true));
        }
    }
public function metadataTransformer ( ) { if ( is_string ( $ this -> getMetadata ( ) ) ) { $ this -> setMetadata ( json_decode ( $ this -> getMetadata ( ) , true ) ) ; } }
Transforms metadata from string to array.

As metadata can be set by the developer or by reflection during syncronization of the StripeCustomer object with
this local one, may happen the value is a string.

This lifecycle callback ensures the value ever is an array.
Transforms metadata from string to array .