Add dependency with jms serializer and define Media entity serializer