from static method
Implementation
static CSSColorName? from(Object? color) {
if (color == null) return null;
if (color is CSSColorName) {
return color;
} else if (color is String) {
return CSSColorName.parse(color);
}
return null;
}