plugin/claco-form/Serializer/FieldChoiceCategorySerializer.php
public function serialize(FieldChoiceCategory $fieldChoiceCategory)
    {
        $serialized = [
            'id' => $fieldChoiceCategory->getUuid(),
            'field' => $this->fieldSerializer->serialize($fieldChoiceCategory->getField(), [Options::SERIALIZE_MINIMAL]),
            'category' => [
                'id' => $fieldChoiceCategory->getCategory()->getUuid(),
            ],
            'value' => $fieldChoiceCategory->getValue(),
        ];

        return $serialized;
    }
public function serialize(FieldChoiceCategory $fieldChoiceCategory)
    {
        $serialized = [
            'id' => $fieldChoiceCategory->getUuid(),
            'field' => $this->fieldSerializer->serialize($fieldChoiceCategory->getField(), [Options::SERIALIZE_MINIMAL]),
            'category' => [
                'id' => $fieldChoiceCategory->getCategory()->getUuid(),
            ],
            'value' => $fieldChoiceCategory->getValue(),
        ];

        return $serialized;
    }
public function serialize ( FieldChoiceCategory $ fieldChoiceCategory ) { $ serialized = [ 'id' => $ fieldChoiceCategory -> getUuid ( ) , 'field' => $ this -> fieldSerializer -> serialize ( $ fieldChoiceCategory -> getField ( ) , [ Options :: SERIALIZE_MINIMAL ] ) , 'category' => [ 'id' => $ fieldChoiceCategory -> getCategory ( ) -> getUuid ( ) , ] , 'value' => $ fieldChoiceCategory -> getValue ( ) , ] ; return $ serialized ; }
Serializes a FieldChoiceCategory entity for the JSON api.

@param FieldChoiceCategory $fieldChoiceCategory

@return array - the serialized representation of the field
Serializes a FieldChoiceCategory entity for the JSON api .