DynamicColor.fromJson constructor

DynamicColor.fromJson(
  1. Map<String, dynamic> json
)

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'];
}