toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DiskState.pending:
      return 'pending';
    case DiskState.error:
      return 'error';
    case DiskState.available:
      return 'available';
    case DiskState.inUse:
      return 'in-use';
    case DiskState.unknown:
      return 'unknown';
  }
}