toUserProfileStatus method

UserProfileStatus toUserProfileStatus()

Implementation

UserProfileStatus toUserProfileStatus() {
  switch (this) {
    case 'Deleting':
      return UserProfileStatus.deleting;
    case 'Failed':
      return UserProfileStatus.failed;
    case 'InService':
      return UserProfileStatus.inService;
    case 'Pending':
      return UserProfileStatus.pending;
    case 'Updating':
      return UserProfileStatus.updating;
    case 'Update_Failed':
      return UserProfileStatus.updateFailed;
    case 'Delete_Failed':
      return UserProfileStatus.deleteFailed;
  }
  throw Exception('$this is not known in enum UserProfileStatus');
}