The local variables table is the closest thing to a data object in Figma. It would be great to assign/change a mode through interactions, for example:
onClick-> changeTo → Mode “Theme2”
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.