use Symfony\Component\Validator\Constraints\All;
use Symfony\Component\Validator\Constraints\Choice;
use Symfony\Component\Validator\Constraints\Collection;
use Symfony\Component\Validator\Constraints\NotBlank;
#[Package('buyers-experience')]
class SlotConfigFieldSerializer extends JsonFieldSerializer
{ protected function getConstraints(Field
$field): array
{ return [ new All([ 'constraints' =>
new Collection([ 'allowExtraFields' => false,
'allowMissingFields' => false,
'fields' =>
[ 'source' =>
[ new Choice([ 'choices' =>
[ FieldConfig::SOURCE_STATIC,
FieldConfig::SOURCE_MAPPED,
FieldConfig::SOURCE_PRODUCT_STREAM,
FieldConfig::SOURCE_DEFAULT,
],