ColorRAL.fromJson constructor

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

Implementation

ColorRAL.fromJson(Map<String, dynamic> json) {
  hex = json['hex'];
  websafe = json['websafe'];
  rgb = Rgb.fromJson(json['rgb']);
  hsl = Hsl.fromJson(json['hsl']);
  hsb = Hsb.fromJson(json['hsb']);
  cmyk = Cmyk.fromJson(json['cmyk']);
}