toValue method
Implementation
String toValue() {
switch (this) {
case StreamStatus.active:
return 'ACTIVE';
case StreamStatus.completed:
return 'COMPLETED';
case StreamStatus.canceled:
return 'CANCELED';
case StreamStatus.failed:
return 'FAILED';
case StreamStatus.impaired:
return 'IMPAIRED';
}
}