parse static method

Role parse(
  1. String textValue
)
override

Parses the given textValue

Implementation

static Role parse(String textValue) {
  switch (textValue) {
    case 'CHAIR':
      return Role.chair;
    case 'REQ-PARTICIPANT':
      return Role.requiredParticipant;
    case 'OPT-PARTICIPANT':
      return Role.optionalParticipant;
    case 'NON-PARTICIPANT':
      return Role.nonParticipant;
    default:
      return Role.other;
  }
}