fromString static method

NavigationType fromString(
  1. String string
)

Implementation

static NavigationType fromString(String string) {
  switch (string) {
    case _valueRichLanding:
      return NavigationType.richLanding;
    case _valueDeepLink:
      return NavigationType.deepLink;
    case _valueScreenName:
      return NavigationType.screenName;
  }
  throw Exception("unsupported type");
}