fromJson static method

RGB fromJson(
  1. List<int> json
)

Implementation

static RGB fromJson(List<int> json) {
  return RGB(json[0] as int, json[1] as int, json[2] as int);
}