public function reverseMap($data): LanguageCreateStruct
    {
        if (!$data instanceof LanguageCreateData) {
            throw new InvalidArgumentException('data', 'must be an instance of ' . LanguageCreateData::class);
        }

        return new LanguageCreateStruct([
            'languageCode' => $data->getLanguageCode(),
            'name' => $data->getName(),
            'enabled' => $data->isEnabled(),
        ]);
    }
public function reverseMap($data): LanguageCreateStruct
    {
        if (!$data instanceof LanguageCreateData) {
            throw new InvalidArgumentException('data', 'must be an instance of ' . LanguageCreateData::class);
        }

        return new LanguageCreateStruct([
            'languageCode' => $data->getLanguageCode(),
            'name' => $data->getName(),
            'enabled' => $data->isEnabled(),
        ]);
    }
public function reverseMap ( $ data ) : LanguageCreateStruct { if ( ! $ data instanceof LanguageCreateData ) { throw new InvalidArgumentException ( 'data' , 'must be an instance of ' . LanguageCreateData :: class ) ; } return new LanguageCreateStruct ( [ 'languageCode' => $ data -> getLanguageCode ( ) , 'name' => $ data -> getName ( ) , 'enabled' => $ data -> isEnabled ( ) , ] ) ; }
Maps given LanguageCreateData object to a LanguageCreateStruct object.

@param LanguageCreateData $data

@return LanguageCreateStruct

@throws InvalidArgumentException
Maps given LanguageCreateData object to a LanguageCreateStruct object .