python反序列化,dict->object方法怎么写?

@post_load
def make_user(self, data):
return User(**data)

json.dumps(data)