toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ImageStatus.pending:
      return 'PENDING';
    case ImageStatus.creating:
      return 'CREATING';
    case ImageStatus.building:
      return 'BUILDING';
    case ImageStatus.testing:
      return 'TESTING';
    case ImageStatus.distributing:
      return 'DISTRIBUTING';
    case ImageStatus.integrating:
      return 'INTEGRATING';
    case ImageStatus.available:
      return 'AVAILABLE';
    case ImageStatus.cancelled:
      return 'CANCELLED';
    case ImageStatus.failed:
      return 'FAILED';
    case ImageStatus.deprecated:
      return 'DEPRECATED';
    case ImageStatus.deleted:
      return 'DELETED';
  }
}