toRegistrationStatus method

RegistrationStatus toRegistrationStatus()

Implementation

RegistrationStatus toRegistrationStatus() {
  switch (this) {
    case 'COMPLETE':
      return RegistrationStatus.complete;
    case 'IN_PROGRESS':
      return RegistrationStatus.inProgress;
    case 'FAILED':
      return RegistrationStatus.failed;
  }
  throw Exception('$this is not known in enum RegistrationStatus');
}