fromJson static method
Converts an ISO 2 code into an OpenFoodFactsCountry (case-insensitive).
E.g. 'fr' and 'FR' will give the same result: OpenFoodFactsCountry.FRANCE.
Implementation
static OpenFoodFactsCountry? fromJson(String? code) {
if (code == null) {
return null;
}
return OpenFoodFactsCountry.fromOffTag(code.toLowerCase());
}