src/Graviton/I18nBundle/Serializer/Handler/TranslatableHandler.php
public function deserializeTranslatableFromJson(
        JsonDeserializationVisitor $visitor,
        $data,
        array $type,
        Context $context
    ) {
        if (!is_null($data)) {
            $translatable = Translatable::createFromTranslations($data);
            $this->utils->persistTranslatable($translatable);
            return $translatable;
        }
        return null;
    }
public function deserializeTranslatableFromJson(
        JsonDeserializationVisitor $visitor,
        $data,
        array $type,
        Context $context
    ) {
        if (!is_null($data)) {
            $translatable = Translatable::createFromTranslations($data);
            $this->utils->persistTranslatable($translatable);
            return $translatable;
        }
        return null;
    }
public function deserializeTranslatableFromJson ( JsonDeserializationVisitor $ visitor , $ data , array $ type , Context $ context ) { if ( ! is_null ( $ data ) ) { $ translatable = Translatable :: createFromTranslations ( $ data ) ; $ this -> utils -> persistTranslatable ( $ translatable ) ; return $ translatable ; } return null ; }
Serialize Translatable from JSON

@param JsonDeserializationVisitor $visitor Visitor
@param array                      $data    translation array as we represent if to users
@param array                      $type    Type
@param Context                    $context Context

@return Translatable|null
Serialize Translatable from JSON