Color.fromJson constructor
Color.fromJson(
- Map json_
Implementation
Color.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,
saturation: json_.containsKey('saturation')
? (json_['saturation'] as core.num).toDouble()
: null,
);