fromString static method

SipMethod? fromString(
  1. String? name
)

Implementation

static SipMethod? fromString(String? name) {
  if (name != null) {
    String cleanName = name.toUpperCase();
    for (SipMethod method in SipMethod.values) {
      if (getName(method) == cleanName) {
        return method;
      }
    }
    return null;
  }
  return null;
}