src/Core/DynamicMetadata/MultiAreas.php
public static function createFromDecodedJsonResponse($data)
    {
        $areas = [];
        foreach ($data as $name => $area) {
            $areas[$name] = [];
            foreach ($area as $class => $data) {
                $metaClass = DynamicMetadataHelper::getDynamicMetadataClassName($class);
                /* @var DynamicMetadataInterface $metaClass */
                $areas[$name][] = $metaClass::createFromDecodedJsonResponse($data);
            }
        }

        return new self($areas);
    }
public static function createFromDecodedJsonResponse($data)
    {
        $areas = [];
        foreach ($data as $name => $area) {
            $areas[$name] = [];
            foreach ($area as $class => $data) {
                $metaClass = DynamicMetadataHelper::getDynamicMetadataClassName($class);
                /* @var DynamicMetadataInterface $metaClass */
                $areas[$name][] = $metaClass::createFromDecodedJsonResponse($data);
            }
        }

        return new self($areas);
    }
public static function createFromDecodedJsonResponse ( $ data ) { $ areas = [ ] ; foreach ( $ data as $ name => $ area ) { $ areas [ $ name ] = [ ] ; foreach ( $ area as $ class => $ data ) { $ metaClass = DynamicMetadataHelper :: getDynamicMetadataClassName ( $ class ) ; /* @var DynamicMetadataInterface $metaClass */ $ areas [ $ name ] [ ] = $ metaClass :: createFromDecodedJsonResponse ( $ data ) ; } } return new self ( $ areas ) ; }
Create a DynamicMetadata from the decoded JSON data.

@param array $data Decoded JSON data

@return DynamicMetadataInterface
Create a DynamicMetadata from the decoded JSON data .