def create_from_discriminator_value(parse_node: ParseNode) -> GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse:
        """
        Creates a new instance of the appropriate class based on discriminator value
        param parse_node: The parse node to use to read the discriminator value and create the object
        Returns: GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse
        """
        if parse_node is None:
            raise TypeError("parse_node cannot be null.")
        return GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse()

        Creates a new instance of the appropriate class based on discriminator value
        param parse_node: The parse node to use to read the discriminator value and create the object
        Returns: GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse
        
msgraph/generated/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/get_pstn_calls_with_from_date_time_with_to_date_time_get_response.py