toSlotConstraint method

SlotConstraint toSlotConstraint()

Implementation

SlotConstraint toSlotConstraint() {
  switch (this) {
    case 'Required':
      return SlotConstraint.required;
    case 'Optional':
      return SlotConstraint.optional;
  }
  throw Exception('$this is not known in enum SlotConstraint');
}