def __init__(self, type_dict):
        self.name = ""
        self.optional = False
        if "name" in type_dict:
            self.name = type_dict["name"]
        self.type = type_dict["type"]
        self.is_array = type_dict["is_array"]
        if "optional" in type_dict:
            self.optional = type_dict["optional"]
dataset/ETHPy150Open StackHut/stackhut/stackhut_toolkit/common/barrister/runtime.py/Type.__init__/original