toJsonStringMap static method

Map<String, String>? toJsonStringMap(
  1. Map<OpenFoodFactsLanguage, String>? map
)

Helper function without generic types. Needed for the @JsonKey annotation (the annotation can't work with generics).

Implementation

static Map<String, String>? toJsonStringMap(
    Map<OpenFoodFactsLanguage, String>? map) {
  return toJsonMap(map);
}