src/ServiceManagement/Models/ListAffinityGroupsResult.php
public static function create($parsed)
    {
        $result = new self();

        $result->_affinityGroups = [];
        $entries = Utilities::tryGetArray(
            Resources::XTAG_AFFINITY_GROUP,
            $parsed
        );

        foreach ($entries as $value) {
            $result->_affinityGroups[] = new AffinityGroup($value);
        }

        return $result;
    }
public static function create($parsed)
    {
        $result = new self();

        $result->_affinityGroups = [];
        $entries = Utilities::tryGetArray(
            Resources::XTAG_AFFINITY_GROUP,
            $parsed
        );

        foreach ($entries as $value) {
            $result->_affinityGroups[] = new AffinityGroup($value);
        }

        return $result;
    }
public static function create ( $ parsed ) { $ result = new self ( ) ; $ result -> _affinityGroups = [ ] ; $ entries = Utilities :: tryGetArray ( Resources :: XTAG_AFFINITY_GROUP , $ parsed ) ; foreach ( $ entries as $ value ) { $ result -> _affinityGroups [ ] = new AffinityGroup ( $ value ) ; } return $ result ; }
Creates new ListAffinityGroupsResult from parsed response body.

@param array $parsed The parsed response body

@return ListAffinityGroupsResult
Creates new ListAffinityGroupsResult from parsed response body .