toLandmarkType method
Implementation
LandmarkType toLandmarkType() {
switch (this) {
case 'eyeLeft':
return LandmarkType.eyeLeft;
case 'eyeRight':
return LandmarkType.eyeRight;
case 'nose':
return LandmarkType.nose;
case 'mouthLeft':
return LandmarkType.mouthLeft;
case 'mouthRight':
return LandmarkType.mouthRight;
case 'leftEyeBrowLeft':
return LandmarkType.leftEyeBrowLeft;
case 'leftEyeBrowRight':
return LandmarkType.leftEyeBrowRight;
case 'leftEyeBrowUp':
return LandmarkType.leftEyeBrowUp;
case 'rightEyeBrowLeft':
return LandmarkType.rightEyeBrowLeft;
case 'rightEyeBrowRight':
return LandmarkType.rightEyeBrowRight;
case 'rightEyeBrowUp':
return LandmarkType.rightEyeBrowUp;
case 'leftEyeLeft':
return LandmarkType.leftEyeLeft;
case 'leftEyeRight':
return LandmarkType.leftEyeRight;
case 'leftEyeUp':
return LandmarkType.leftEyeUp;
case 'leftEyeDown':
return LandmarkType.leftEyeDown;
case 'rightEyeLeft':
return LandmarkType.rightEyeLeft;
case 'rightEyeRight':
return LandmarkType.rightEyeRight;
case 'rightEyeUp':
return LandmarkType.rightEyeUp;
case 'rightEyeDown':
return LandmarkType.rightEyeDown;
case 'noseLeft':
return LandmarkType.noseLeft;
case 'noseRight':
return LandmarkType.noseRight;
case 'mouthUp':
return LandmarkType.mouthUp;
case 'mouthDown':
return LandmarkType.mouthDown;
case 'leftPupil':
return LandmarkType.leftPupil;
case 'rightPupil':
return LandmarkType.rightPupil;
case 'upperJawlineLeft':
return LandmarkType.upperJawlineLeft;
case 'midJawlineLeft':
return LandmarkType.midJawlineLeft;
case 'chinBottom':
return LandmarkType.chinBottom;
case 'midJawlineRight':
return LandmarkType.midJawlineRight;
case 'upperJawlineRight':
return LandmarkType.upperJawlineRight;
}
throw Exception('$this is not known in enum LandmarkType');
}