@classmethod
    def with_json(cls, jsonobj):
        if isinstance(jsonobj, dict):
            return cls._with_json_dict(jsonobj)
        
        arr = []
        for jsondict in jsonobj:
            arr.append(cls._with_json_dict(jsondict))
        return arr
Initialize an element from a JSON dictionary or array.
dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/fhirabstractbase.py/FHIRAbstractBase.with_json