fromNativeValue static method
- String? value
Gets a possible WebsiteDataType instance from a native value.
Implementation
static WebsiteDataType? fromNativeValue(String? value) {
if (value != null) {
try {
return WebsiteDataType.values.firstWhere(
(element) => element.toNativeValue() == value,
);
} catch (e) {
return null;
}
}
return null;
}