toConfirmationStatus method

ConfirmationStatus toConfirmationStatus()

Implementation

ConfirmationStatus toConfirmationStatus() {
  switch (this) {
    case 'None':
      return ConfirmationStatus.none;
    case 'Confirmed':
      return ConfirmationStatus.confirmed;
    case 'Denied':
      return ConfirmationStatus.denied;
  }
  throw Exception('$this is not known in enum ConfirmationStatus');
}