fromIndex static method
Implementation
static CountryCodeSource fromIndex(int? index) {
return CountryCodeSource.values.singleWhere(
(element) => element.value == index,
orElse: () => CountryCodeSource.UNSPECIFIED,
);
}
static CountryCodeSource fromIndex(int? index) {
return CountryCodeSource.values.singleWhere(
(element) => element.value == index,
orElse: () => CountryCodeSource.UNSPECIFIED,
);
}