ExifMetadata.fromMap constructor

ExifMetadata.fromMap(
  1. Map json
)

Implementation

ExifMetadata.fromMap(Map json)
    : imageWidth = _castAsDouble(json['ImageWidth']),
      imageLength = _castAsDouble(json['ImageLength']),
      bitsPerSample = _castAsInt(json['BitsPerSample']),
      compression = _castAsInt(json['Compression']),
      photometricInterpretation =
          _castAsInt(json['PhotometricInterpretation']),
      orientation = _castAsInt(json['Orientation']),
      samplesPerPixel = _castAsInt(json['SamplesPerPixel']),
      planarConfiguration = _castAsInt(json['PlanarConfiguration']),
      ycbCrSubSampling = _castAsInt(json['YCbCrSubSampling']),
      ycbCrPositioning = _castAsInt(json['YCbCrPositioning']),
      xResolution = _castAsDouble(json['XResolution']),
      yResolution = _castAsDouble(json['YResolution']),
      resolutionUnit = _castAsInt(json['ResolutionUnit']),
      stripOffsets = _castAsDouble(json['StripOffsets']),
      rowsPerStrip = _castAsDouble(json['RowsPerStrip']),
      stripByteCounts = _castAsDouble(json['StripByteCounts']),
      jpegInterchangeFormat = _castAsDouble(json['JPEGInterchangeFormat']),
      jpegInterchangeFormatLength =
          _castAsDouble(json['JPEGInterchangeFormatLength']),
      transferFunction = _castAsInt(json['TransferFunction']),
      whitePoint = _castAsDouble(json['WhitePoint']),
      primaryChromaticities = _castAsDouble(json['PrimaryChromaticities']),
      ycbCrCoefficients = _castAsDouble(json['YCbCrCoefficients']),
      referenceBlackWhite = _castAsDouble(json['ReferenceBlackWhite']),
      dateTime = _castAsString(json['DateTime']),
      imageDescription = _castAsString(json['ImageDescription']),
      artist = _castAsString(json['Artist']),
      copyright = _castAsString(json['Copyright']),
      exifVersion = _castAsString(json['ExifVersion']),
      flashpixVersion = _castAsString(json['FlashpixVersion']),
      colorSpace = _castAsInt(json['ColorSpace']),
      gamma = _castAsDouble(json['Gamma']),
      pixelXDimension = _castAsDouble(json['PixelXDimension']),
      pixelYDimension = _castAsDouble(json['PixelYDimension']),
      componentsConfiguration =
          _castAsString(json['ComponentsConfiguration']),
      compressedBitsPerPixel = _castAsDouble(json['CompressedBitsPerPixel']),
      userComment = _castAsString(json['UserComment']),
      relatedSoundFile = _castAsString(json['RelatedSoundFile']),
      dateTimeOriginal = _castAsString(json['DateTimeOriginal']),
      dateTimeDigitized = _castAsString(json['DateTimeDigitized']),
      subSecTime = _castAsString(json['SubSecTime']),
      subSecTimeOriginal = _castAsString(json['SubSecTimeOriginal']),
      subSecTimeDigitized = _castAsString(json['SubSecTimeDigitized']),
      exposureTime = _castAsDouble(json['ExposureTime']),
      fNumber = _castAsDouble(json['FNumber']),
      exposureProgram = _castAsInt(json['ExposureProgram']),
      spectralSensitivity = _castAsString(json['SpectralSensitivity']),
      photographicSensitivity = _castAsInt(json['PhotographicSensitivity']),
      oecf = _castAsString(json['OECF']),
      sensitivityType = _castAsInt(json['SensitivityType']),
      standardOutputSensitivity =
          _castAsDouble(json['StandardOutputSensitivity']),
      recommendedExposureIndex =
          _castAsDouble(json['RecommendedExposureIndex']),
      isoSpeed = _castAsDouble(json['ISOSpeed']),
      isoSpeedLatitudeyyy = _castAsDouble(json['ISOSpeedLatitudeyyy']),
      isoSpeedLatitudezzz = _castAsDouble(json['ISOSpeedLatitudezzz']),
      shutterSpeedValue = _castAsDouble(json['ShutterSpeedValue']),
      apertureValue = _castAsDouble(json['ApertureValue']),
      brightnessValue = _castAsDouble(json['BrightnessValue']),
      exposureBiasValue = _castAsDouble(json['ExposureBiasValue']),
      maxApertureValue = _castAsDouble(json['MaxApertureValue']),
      subjectDistance = _castAsDouble(json['SubjectDistance']),
      meteringMode = _castAsInt(json['MeteringMode']),
      lightSource = _castAsInt(json['LightSource']),
      flash = _castAsInt(json['Flash']),
      subjectArea = _castAsIntMap(json['SubjectArea']),
      focalLength = _castAsDouble(json['FocalLength']),
      flashEnergy = _castAsDouble(json['FlashEnergy']),
      spatialFrequencyResponse =
          _castAsString(json['SpatialFrequencyResponse']),
      focalPlaneXResolution = _castAsDouble(json['FocalPlaneXResolution']),
      focalPlaneYResolution = _castAsDouble(json['FocalPlaneYResolution']),
      focalPlaneResolutionUnit = _castAsInt(json['FocalPlaneResolutionUnit']),
      subjectLocation = _castAsInt(json['SubjectLocation']),
      exposureIndex = _castAsDouble(json['ExposureIndex']),
      sensingMethod = _castAsInt(json['SensingMethod']),
      fileSource = _castAsString(json['FileSource']),
      sceneType = _castAsString(json['SceneType']),
      cfaPattern = _castAsString(json['CFAPattern']),
      customRendered = _castAsInt(json['CustomRendered']),
      exposureMode = _castAsInt(json['ExposureMode']),
      whiteBalance = _castAsInt(json['WhiteBalance']),
      digitalZoomRatio = _castAsDouble(json['DigitalZoomRatio']),
      focalLengthIn35mmFilm = _castAsInt(json['FocalLengthIn35mmFilm']),
      sceneCaptureType = _castAsInt(json['SceneCaptureType']),
      gainControl = _castAsInt(json['GainControl']),
      contrast = _castAsInt(json['Contrast']),
      saturation = _castAsInt(json['Saturation']),
      sharpness = _castAsInt(json['Sharpness']),
      deviceSettingDescription =
          _castAsString(json['DeviceSettingDescription']),
      subjectDistanceRange = _castAsInt(json['SubjectDistanceRange']),
      imageUniqueID = _castAsString(json['ImageUniqueID']);