toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case WriteForwardingStatus.enabled:
      return 'enabled';
    case WriteForwardingStatus.disabled:
      return 'disabled';
    case WriteForwardingStatus.enabling:
      return 'enabling';
    case WriteForwardingStatus.disabling:
      return 'disabling';
    case WriteForwardingStatus.unknown:
      return 'unknown';
  }
}