fromJson$Enum$DeviceTypeEnum function

Enum$DeviceTypeEnum fromJson$Enum$DeviceTypeEnum(
  1. String value
)

Implementation

Enum$DeviceTypeEnum fromJson$Enum$DeviceTypeEnum(String value) {
  switch (value) {
    case r'TV':
      return Enum$DeviceTypeEnum.TV;
    case r'TABLET':
      return Enum$DeviceTypeEnum.TABLET;
    case r'CAMERA':
      return Enum$DeviceTypeEnum.CAMERA;
    case r'NO_DATA':
      return Enum$DeviceTypeEnum.NO_DATA;
    case r'DESKTOP':
      return Enum$DeviceTypeEnum.DESKTOP;
    case r'CONSOLE':
      return Enum$DeviceTypeEnum.CONSOLE;
    case r'PHABLET':
      return Enum$DeviceTypeEnum.PHABLET;
    case r'WEARABLE':
      return Enum$DeviceTypeEnum.WEARABLE;
    case r'SMARTPHONE':
      return Enum$DeviceTypeEnum.SMARTPHONE;
    case r'PERIPHERAL':
      return Enum$DeviceTypeEnum.PERIPHERAL;
    case r'CAR_BROWSER':
      return Enum$DeviceTypeEnum.CAR_BROWSER;
    case r'FEATURE_PHONE':
      return Enum$DeviceTypeEnum.FEATURE_PHONE;
    case r'SMART_DISPLAY':
      return Enum$DeviceTypeEnum.SMART_DISPLAY;
    case r'SMART_SPEAKER':
      return Enum$DeviceTypeEnum.SMART_SPEAKER;
    case r'PORTABLE_MEDIA_PLAYER':
      return Enum$DeviceTypeEnum.PORTABLE_MEDIA_PLAYER;
    default:
      return Enum$DeviceTypeEnum.$unknown;
  }
}