src/Perry/Representation/Eve/v2/Capsuleer.php
public function setPortrait($portrait)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['pattern'] = function ($value) { return $value; };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['pattern'] = isset($value->{'pattern'}) ? $converters['pattern']($value->{'pattern'}) : null;
            return $return;
        };
        $this->portrait = $func($portrait);
    }
public function setPortrait($portrait)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['pattern'] = function ($value) { return $value; };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['pattern'] = isset($value->{'pattern'}) ? $converters['pattern']($value->{'pattern'}) : null;
            return $return;
        };
        $this->portrait = $func($portrait);
    }
by Warringer\Types\Dict