fromStr static method

EnumClipType fromStr(
  1. String s,
  2. int lineStart,
  3. int lineEnd,
  4. SpWMLInfo? info,
)

Throws SpWMLException : If the type is incorrect, Throws TypeException.

Implementation

static EnumClipType fromStr(
    String s, int lineStart, int lineEnd, SpWMLInfo? info) {
  try {
    return EnumClipType.values.byName(s);
  } catch (e) {
    throw SpWMLException(
        EnumSpWMLExceptionType.typeException, lineStart, lineEnd, info);
  }
}