toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.preparing:
      return 'PREPARING';
    case Status.active:
      return 'ACTIVE';
    case Status.expired:
      return 'EXPIRED';
  }
}