def __init__(self, js_obj, driver=None):
        """
        Constructor

        :param js_obj: Whatsapp JS object to wrap
        :type js_obj: dict
        :param driver: Optional driver instance
        :type driver: WhatsAPIDriver
        """
        super(WhatsappObjectWithId, self).__init__(js_obj, driver)
        if 'id' in js_obj:
            try:
                self.id = js_obj["id"]["_serialized"]
            except:
                self.id = js_obj["id"]
        if 'name' in js_obj:
            self.name = js_obj["name"]
def __init__ ( self , js_obj , driver = None ) : super ( WhatsappObjectWithId , self ) . __init__ ( js_obj , driver ) if 'id' in js_obj : try : self . id = js_obj [ "id" ] [ "_serialized" ] except : self . id = js_obj [ "id" ] if 'name' in js_obj : self . name = js_obj [ "name" ]
Constructor

        :param js_obj: Whatsapp JS object to wrap
        :type js_obj: dict
        :param driver: Optional driver instance
        :type driver: WhatsAPIDriver