def serialize(self,writer: SerializationWriter) -> None:
        """
        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        """
        if writer is None:
            raise TypeError("writer cannot be null.")
        writer.write_str_value("alternativeText", self.alternative_text)
        writer.write_bool_value("enableGradientEffect", self.enable_gradient_effect)
        writer.write_str_value("imageWebUrl", self.image_web_url)
        writer.write_enum_value("layout", self.layout)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_object_value("serverProcessedContent", self.server_processed_content)
        writer.write_bool_value("showAuthor", self.show_author)
        writer.write_bool_value("showPublishedDate", self.show_published_date)
        writer.write_bool_value("showTextBlockAboveTitle", self.show_text_block_above_title)
        writer.write_str_value("textAboveTitle", self.text_above_title)
        writer.write_enum_value("textAlignment", self.text_alignment)
        writer.write_additional_data_value(self.additional_data)

        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        
msgraph/generated/models/title_area.py