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.")
        super().serialize(writer)
        writer.write_datetime_value("endDateTime", self.end_date_time)
        writer.write_str_value("joinWebUrl", self.join_web_url)
        writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time)
        writer.write_collection_of_enum_values("modalities", self.modalities)
        writer.write_object_value("organizer", self.organizer)
        writer.write_object_value("organizer_v2", self.organizer_v2)
        writer.write_collection_of_object_values("participants", self.participants)
        writer.write_collection_of_object_values("participants_v2", self.participants_v2)
        writer.write_collection_of_object_values("sessions", self.sessions)
        writer.write_datetime_value("startDateTime", self.start_date_time)
        writer.write_enum_value("type", self.type)
        writer.write_int_value("version", self.version)

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