python from object to dict code example
Example: python convert object into ditct
class A():
def __init__(self):
self.a = 1
self.b = 2
a = A()
aDict = vars(a)
class A():
def __init__(self):
self.a = 1
self.b = 2
a = A()
aDict = vars(a)