toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DataSourceStatus.enabled:
      return 'ENABLED';
    case DataSourceStatus.disabled:
      return 'DISABLED';
  }
}