toDevicePlatform method
Implementation
DevicePlatform toDevicePlatform() {
switch (this) {
case 'ANDROID':
return DevicePlatform.android;
case 'IOS':
return DevicePlatform.ios;
}
throw Exception('$this is not known in enum DevicePlatform');
}