RESOURCES / PYTHON OBJECT TO DICTIONARY
Python object to dictionary

class Person:
  def init(self, name, age):
   self.name = name
   self.age = age

person_bob = Person("Bob", 40)
p_dict = vars(person_bob)