public static function createFromArray($name, array $data = [])
    {
        $type = parent::createFromArray($name, $data);
        \assert($type instanceof self);

        $type->json = $data;

        return $type;
    }
public static function createFromArray($name, array $data = [])
    {
        $type = parent::createFromArray($name, $data);
        \assert($type instanceof self);

        $type->json = $data;

        return $type;
    }
public static function createFromArray ( $ name , array $ data = [ ] ) { $ type = parent :: createFromArray ( $ name , $ data ) ; \ assert ( $ type instanceof self ) ; $ type -> json = $ data ; return $ type ; }
Create a new JsonType from an array of data

@param string $name
@return self
Create a new JsonType from an array of data