toDeviceAttribute method

DeviceAttribute toDeviceAttribute()

Implementation

DeviceAttribute toDeviceAttribute() {
  switch (this) {
    case 'ARN':
      return DeviceAttribute.arn;
    case 'PLATFORM':
      return DeviceAttribute.platform;
    case 'FORM_FACTOR':
      return DeviceAttribute.formFactor;
    case 'MANUFACTURER':
      return DeviceAttribute.manufacturer;
    case 'REMOTE_ACCESS_ENABLED':
      return DeviceAttribute.remoteAccessEnabled;
    case 'REMOTE_DEBUG_ENABLED':
      return DeviceAttribute.remoteDebugEnabled;
    case 'APPIUM_VERSION':
      return DeviceAttribute.appiumVersion;
    case 'INSTANCE_ARN':
      return DeviceAttribute.instanceArn;
    case 'INSTANCE_LABELS':
      return DeviceAttribute.instanceLabels;
    case 'FLEET_TYPE':
      return DeviceAttribute.fleetType;
    case 'OS_VERSION':
      return DeviceAttribute.osVersion;
    case 'MODEL':
      return DeviceAttribute.model;
    case 'AVAILABILITY':
      return DeviceAttribute.availability;
  }
  throw Exception('$this is not known in enum DeviceAttribute');
}