DynamicColor.fromJson constructor
Creates a DynamicColor object from a JSON map.
This constructor deserializes the JSON data into a DynamicColor object.
Implementation
DynamicColor.fromJson(Map<String, dynamic> json) {
r = json['r'];
g = json['g'];
b = json['b'];
opacity = json['opacity'];
}