toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case State.pending:
      return 'Pending';
    case State.active:
      return 'Active';
    case State.inactive:
      return 'Inactive';
    case State.failed:
      return 'Failed';
  }
}