toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ImageStatus.creating:
      return 'CREATING';
    case ImageStatus.created:
      return 'CREATED';
    case ImageStatus.createFailed:
      return 'CREATE_FAILED';
    case ImageStatus.updating:
      return 'UPDATING';
    case ImageStatus.updateFailed:
      return 'UPDATE_FAILED';
    case ImageStatus.deleting:
      return 'DELETING';
    case ImageStatus.deleteFailed:
      return 'DELETE_FAILED';
  }
}