toValue method
Implementation
String toValue() {
switch (this) {
case PortState.open:
return 'open';
case PortState.closed:
return 'closed';
}
}
String toValue() {
switch (this) {
case PortState.open:
return 'open';
case PortState.closed:
return 'closed';
}
}