src/ServiceManagement/Models/Role.php
public static function create($parsed)
    {
        $role = new self();
        $roleName = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_ROLE_NAME
        );
        $osVersion = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_OS_VERSION
        );

        $role->setOsVersion($osVersion);
        $role->setRoleName($roleName);

        return $role;
    }
public static function create($parsed)
    {
        $role = new self();
        $roleName = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_ROLE_NAME
        );
        $osVersion = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_OS_VERSION
        );

        $role->setOsVersion($osVersion);
        $role->setRoleName($roleName);

        return $role;
    }
public static function create ( $ parsed ) { $ role = new self ( ) ; $ roleName = Utilities :: tryGetValue ( $ parsed , Resources :: XTAG_ROLE_NAME ) ; $ osVersion = Utilities :: tryGetValue ( $ parsed , Resources :: XTAG_OS_VERSION ) ; $ role -> setOsVersion ( $ osVersion ) ; $ role -> setRoleName ( $ roleName ) ; return $ role ; }
Creates a new Role from parsed response body.

@param array $parsed The parsed response body in array representation

@return Role
Creates a new Role from parsed response body .