-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
run: dart doc . | ||
|
||
- name: Deploy API documentation to Github Pages | ||
uses: JamesIves/[email protected].0 | ||
uses: JamesIves/[email protected].1 | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: doc/api/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import 'package:json_annotation/json_annotation.dart'; | ||
import '../model/off_tagged.dart'; | ||
import '../utils/server_type.dart'; | ||
|
||
/// Flavor is used to refer to a specific Open*Facts project. | ||
/// | ||
/// cf. `Flavor` in https://prices.openfoodfacts.org/api/docs | ||
/// Somehow redundant with [ServerType]. | ||
enum Flavor implements OffTagged { | ||
/// Open Food Facts | ||
@JsonValue('off') | ||
openFoodFacts(offTag: 'off'), | ||
|
||
/// Open Beauty Facts | ||
@JsonValue('obf') | ||
openBeautyFacts(offTag: 'obf'), | ||
|
||
/// Open Pet Food Facts | ||
@JsonValue('opff') | ||
openPetFoodFacts(offTag: 'opff'), | ||
|
||
/// Open Product Facts | ||
@JsonValue('opf') | ||
openProductFacts(offTag: 'opf'), | ||
|
||
/// Open Product Facts (Pro platform) | ||
@JsonValue('off-pro') | ||
openFoodProductFactsPro(offTag: 'off-pro'); | ||
|
||
const Flavor({ | ||
required this.offTag, | ||
}); | ||
|
||
@override | ||
final String offTag; | ||
} |