Exemplo n.º 1
0
    def from_dict(cls, dict_in):
        instance = cls()
        converted = convert_dict_keys(dict_in, Case.SNAKE)

        for k, v in converted.items():
            setattr(instance, k, v)
        return instance
Exemplo n.º 2
0
    def from_dict(cls, dict_in):
        instance = cls()
        converted = convert_dict_keys(dict_in, Case.SNAKE)

        for k, v in converted.items():
            setattr(instance, k, v)
        return instance
Exemplo n.º 3
0
 def from_json(cls, json_in):
     _dict = json.loads(json_in)
     return cls.from_dict(convert_dict_keys(_dict, Case.SNAKE))
Exemplo n.º 4
0
 def from_json(cls, json_in):
     _dict = json.loads(json_in)
     return cls.from_dict(convert_dict_keys(_dict, Case.SNAKE))