ImageProperties.fromJson constructor
ImageProperties.fromJson(
- Map json_
Implementation
ImageProperties.fromJson(core.Map json_)
: this(
brightness: json_.containsKey('brightness')
? (json_['brightness'] as core.num).toDouble()
: null,
contrast: json_.containsKey('contrast')
? (json_['contrast'] as core.num).toDouble()
: null,
cropProperties: json_.containsKey('cropProperties')
? CropProperties.fromJson(json_['cropProperties']
as core.Map<core.String, core.dynamic>)
: null,
link: json_.containsKey('link')
? Link.fromJson(
json_['link'] as core.Map<core.String, core.dynamic>)
: null,
outline: json_.containsKey('outline')
? Outline.fromJson(
json_['outline'] as core.Map<core.String, core.dynamic>)
: null,
recolor: json_.containsKey('recolor')
? Recolor.fromJson(
json_['recolor'] as core.Map<core.String, core.dynamic>)
: null,
shadow: json_.containsKey('shadow')
? Shadow.fromJson(
json_['shadow'] as core.Map<core.String, core.dynamic>)
: null,
transparency: json_.containsKey('transparency')
? (json_['transparency'] as core.num).toDouble()
: null,
);