toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SiteState.pending:
      return 'PENDING';
    case SiteState.available:
      return 'AVAILABLE';
    case SiteState.deleting:
      return 'DELETING';
    case SiteState.updating:
      return 'UPDATING';
  }
}