static ImageType? getByValue(int? i) { if (i == null) return null; return ImageType.values.firstWhere((x) => x.value == i); }