static AlphaMode from(Object? v) => switch (v) { 'auto' => auto, 'white' => white, 'black' => black, 'custom' => custom, _ => unknown, };