parse static method

ParticipantStatus parse(
  1. String textValue
)
override

Parses the given textValue

Implementation

static ParticipantStatus parse(String textValue) {
  switch (textValue) {
    case 'NEEDS-ACTION':
      return ParticipantStatus.needsAction;
    case 'ACCEPTED':
      return ParticipantStatus.accepted;
    case 'DECLINED':
      return ParticipantStatus.declined;
    case 'TENTATIVE':
      return ParticipantStatus.tentative;
    case 'DELEGATED':
      return ParticipantStatus.delegated;
    case 'IN-PROCESS':
      return ParticipantStatus.inProcess;
    case 'PARTIAL':
      return ParticipantStatus.partial;
    case 'COMPLETED':
      return ParticipantStatus.completed;
    default:
      return ParticipantStatus.other;
  }
}