toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RegistrationStatus.complete:
      return 'COMPLETE';
    case RegistrationStatus.inProgress:
      return 'IN_PROGRESS';
    case RegistrationStatus.failed:
      return 'FAILED';
  }
}