fromWireValue static method

OpenRouterApiKeyLimitReset? fromWireValue(
  1. String? value
)

Implementation

static OpenRouterApiKeyLimitReset? fromWireValue(String? value) {
  if (value == null) {
    return null;
  }

  for (final candidate in OpenRouterApiKeyLimitReset.values) {
    if (candidate.wireValue == value) {
      return candidate;
    }
  }

  return null;
}