fromString method
Implementation
DeviceModel fromString(String name) {
for (var model in DeviceModel.values) {
if (model.name == name) {
return model;
}
}
return DeviceModel.unknown;
}
DeviceModel fromString(String name) {
for (var model in DeviceModel.values) {
if (model.name == name) {
return model;
}
}
return DeviceModel.unknown;
}