toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PackageStatus.copying:
      return 'COPYING';
    case PackageStatus.copyFailed:
      return 'COPY_FAILED';
    case PackageStatus.validating:
      return 'VALIDATING';
    case PackageStatus.validationFailed:
      return 'VALIDATION_FAILED';
    case PackageStatus.available:
      return 'AVAILABLE';
    case PackageStatus.deleting:
      return 'DELETING';
    case PackageStatus.deleted:
      return 'DELETED';
    case PackageStatus.deleteFailed:
      return 'DELETE_FAILED';
  }
}