toValue method
Implementation
String toValue() {
switch (this) {
case ConnectionStatus.pending:
return 'PENDING';
case ConnectionStatus.available:
return 'AVAILABLE';
case ConnectionStatus.error:
return 'ERROR';
}
}