parse static method

FreeBusyTimeType parse(
  1. String textValue
)
override

Parses the given textValue

Implementation

static FreeBusyTimeType parse(String textValue) {
  switch (textValue) {
    case 'FREE':
      return FreeBusyTimeType.free;
    case 'BUSY':
      return FreeBusyTimeType.busy;
    case 'BUSY-UNAVAILABLE':
      return FreeBusyTimeType.busyUnavailable;
    case 'BUSY-TENTATIVE':
      return FreeBusyTimeType.busyTentative;
    default:
      return FreeBusyTimeType.other;
  }
}