code: def jsonToImageData(self, key: str, value: dict) -> ImageData:
      imageData = ImageData(
          name=key,
          fileName=self.getFileName(value),
          nodeName=self.getNodeName(value),
          segmented=self.isSegmented(value),
          timeStamp=self.getTimeStamp(value),
      )
  
      if self.isSegmented(value):
          segName = self.getSegmentationName(value)
          imageData.setSegmentationFileName(segName)
  
          clientId = self.getClientId(value)
          imageData.setClientId(clientId)
  
      if self.hasLabels(value):
          labelsDict = self.extractLabels(value)
          labelNames = self.extractLabelNames(labelsDict)
          labelContent = self.extractLabelContentByName(labelsDict)
          labelSegmentationMeta: Dict[
              str, SegmentationMeta
          ] = self.getAllSegmentationMetaOfAllLabels(
              labelsDict, labelNames
          )
  
          imageData.setVersionNames(labelNames)
          imageData.setLabelContent(labelContent)
          imageData.setSegmentationMetaDict(labelSegmentationMeta)
  
      return imageData
  
imports: from typing import Dict, List
  from MONAILabelReviewerLib.DataStoreKeys import DataStoreKeys
  from MONAILabelReviewerLib.ImageData import ImageData
  from MONAILabelReviewerLib.MONAILabelReviewerEnum import Label
  from MONAILabelReviewerLib.SegmentationMeta import SegmentationMeta
label_desc: Use image node_id 30 for calling the JsonParser obj's underlying member method code with example usage: obj.jsonToImageData(key, value) and returns: imageData