convent method

Implementation

ImageUploadAlignment convent() {
  switch (this) {
    case ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment.DISABLED:
      return ImageUploadAlignment.disabled;
    case ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment.TWO_BYTE:
      return ImageUploadAlignment.twoByte;
    case ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment.FOUR_BYTE:
      return ImageUploadAlignment.fourByte;
    case ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment.EIGHT_BYTE:
      return ImageUploadAlignment.eightByte;
    case ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment.SIXTEEN_BYTE:
      return ImageUploadAlignment.sixteenByte;
    default:
      throw 'Unsupported ImageUploadAlignment';
  }
}