fromRawValue static method

SDKComponent? fromRawValue(
  1. String value
)

Implementation

static SDKComponent? fromRawValue(String value) {
  return SDKComponent.values.cast<SDKComponent?>().firstWhere(
        (c) => c?.rawValue == value || c?.analyticsKey == value.toLowerCase(),
        orElse: () => null,
      );
}