toProtectiveEquipmentType method
Implementation
ProtectiveEquipmentType toProtectiveEquipmentType() {
switch (this) {
case 'FACE_COVER':
return ProtectiveEquipmentType.faceCover;
case 'HAND_COVER':
return ProtectiveEquipmentType.handCover;
case 'HEAD_COVER':
return ProtectiveEquipmentType.headCover;
}
throw Exception('$this is not known in enum ProtectiveEquipmentType');
}