FileImageMediaMetadata.fromJson constructor

FileImageMediaMetadata.fromJson(
  1. Map json_
)

Implementation

FileImageMediaMetadata.fromJson(core.Map json_)
    : this(
        aperture: json_.containsKey('aperture')
            ? (json_['aperture'] as core.num).toDouble()
            : null,
        cameraMake: json_.containsKey('cameraMake')
            ? json_['cameraMake'] as core.String
            : null,
        cameraModel: json_.containsKey('cameraModel')
            ? json_['cameraModel'] as core.String
            : null,
        colorSpace: json_.containsKey('colorSpace')
            ? json_['colorSpace'] as core.String
            : null,
        date: json_.containsKey('date') ? json_['date'] as core.String : null,
        exposureBias: json_.containsKey('exposureBias')
            ? (json_['exposureBias'] as core.num).toDouble()
            : null,
        exposureMode: json_.containsKey('exposureMode')
            ? json_['exposureMode'] as core.String
            : null,
        exposureTime: json_.containsKey('exposureTime')
            ? (json_['exposureTime'] as core.num).toDouble()
            : null,
        flashUsed: json_.containsKey('flashUsed')
            ? json_['flashUsed'] as core.bool
            : null,
        focalLength: json_.containsKey('focalLength')
            ? (json_['focalLength'] as core.num).toDouble()
            : null,
        height:
            json_.containsKey('height') ? json_['height'] as core.int : null,
        isoSpeed: json_.containsKey('isoSpeed')
            ? json_['isoSpeed'] as core.int
            : null,
        lens: json_.containsKey('lens') ? json_['lens'] as core.String : null,
        location: json_.containsKey('location')
            ? FileImageMediaMetadataLocation.fromJson(
                json_['location'] as core.Map<core.String, core.dynamic>)
            : null,
        maxApertureValue: json_.containsKey('maxApertureValue')
            ? (json_['maxApertureValue'] as core.num).toDouble()
            : null,
        meteringMode: json_.containsKey('meteringMode')
            ? json_['meteringMode'] as core.String
            : null,
        rotation: json_.containsKey('rotation')
            ? json_['rotation'] as core.int
            : null,
        sensor: json_.containsKey('sensor')
            ? json_['sensor'] as core.String
            : null,
        subjectDistance: json_.containsKey('subjectDistance')
            ? json_['subjectDistance'] as core.int
            : null,
        whiteBalance: json_.containsKey('whiteBalance')
            ? json_['whiteBalance'] as core.String
            : null,
        width: json_.containsKey('width') ? json_['width'] as core.int : null,
      );