toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ImageState.pending:
      return 'PENDING';
    case ImageState.available:
      return 'AVAILABLE';
    case ImageState.failed:
      return 'FAILED';
    case ImageState.copying:
      return 'COPYING';
    case ImageState.deleting:
      return 'DELETING';
  }
}