src/Perry/Representation/Eve/v1/IndustrySpeciality.php
public function setGroups($groups)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['id'] = function ($value) { return $value; };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['id'] = isset($value->{'id'}) ? $converters['id']($value->{'id'}) : null;
            return $return;
        };

        foreach ($groups as $key => $value) {
            $this->groups[$key] = $func($value);
        }
    }
public function setGroups($groups)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['id'] = function ($value) { return $value; };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['id'] = isset($value->{'id'}) ? $converters['id']($value->{'id'}) : null;
            return $return;
        };

        foreach ($groups as $key => $value) {
            $this->groups[$key] = $func($value);
        }
    }
by Warringer\Types\ArrayType