1<?xml version="1.0" encoding="UTF-8"?>
2<serializer>
3    <class name="JMS\Serializer\Tests\Fixtures\PersonSecret">
4        <property name="name" type="string" />
5        <property name="gender" type="string" exclude-if="show_data('gender')"/>
6        <property name="age" type="string" expose-if="show_data('age')"/>
7    </class>
8</serializer>
9