fromValue static method
Implementation
static CameraMode fromValue(int value) => switch (value) {
0 => CAMERA_CUSTOM,
1 => CAMERA_FREE,
2 => CAMERA_ORBITAL,
3 => CAMERA_FIRST_PERSON,
4 => CAMERA_THIRD_PERSON,
_ => throw ArgumentError('Unknown value for CameraMode: $value'),
};