I am not quite sure of your intentions bu I will try to provide an example which could fulfill your needs.
Here are some ways you could initialize your Pydantic Model:
# initialize every field one by one
model_instance = TimeZoneSetting(time_zone="foo", type=1, sync_time="bar")
# provide your dict object
kwargs = {"time_zone": "foo", "type": 1}
model_instance = TimeZoneSetting(**kwargs)
Here is the way to update your model, where every field is reached as an attribute to your class:
model_instance.time_zone = "bar"
Here is the way to get you model as a dict:
model_instance.dict()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…