ImageProperties.fromJson constructor

ImageProperties.fromJson(
  1. Map json_
)

Implementation

ImageProperties.fromJson(core.Map json_)
    : this(
        angle: (json_['angle'] as core.num?)?.toDouble(),
        brightness: (json_['brightness'] as core.num?)?.toDouble(),
        contentUri: json_['contentUri'] as core.String?,
        contrast: (json_['contrast'] as core.num?)?.toDouble(),
        cropProperties: json_.containsKey('cropProperties')
            ? CropProperties.fromJson(json_['cropProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        sourceUri: json_['sourceUri'] as core.String?,
        transparency: (json_['transparency'] as core.num?)?.toDouble(),
      );