src/Perry/Representation/Eve/v1/TournamentSeries.php
public function setStructure($structure)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['outgoingLoser'] = function ($value) { return new Reference($value); };
        $converters['outgoingWinner'] = function ($value) { return new Reference($value); };
        $converters['incomingRed'] = function ($value) { return new Reference($value); };
        $converters['incomingBlue'] = function ($value) { return new Reference($value); };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['outgoingLoser'] = isset($value->{'outgoingLoser'}) ? $converters['outgoingLoser']($value->{'outgoingLoser'}) : null;
            $return['outgoingWinner'] = isset($value->{'outgoingWinner'}) ? $converters['outgoingWinner']($value->{'outgoingWinner'}) : null;
            $return['incomingRed'] = isset($value->{'incomingRed'}) ? $converters['incomingRed']($value->{'incomingRed'}) : null;
            $return['incomingBlue'] = isset($value->{'incomingBlue'}) ? $converters['incomingBlue']($value->{'incomingBlue'}) : null;
            return $return;
        };
        $this->structure = $func($structure);
    }
public function setStructure($structure)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['outgoingLoser'] = function ($value) { return new Reference($value); };
        $converters['outgoingWinner'] = function ($value) { return new Reference($value); };
        $converters['incomingRed'] = function ($value) { return new Reference($value); };
        $converters['incomingBlue'] = function ($value) { return new Reference($value); };

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