Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parsing of Grade Json field #311

Merged
merged 1 commit into from Dec 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/model/KnowledgePanel.dart
Expand Up @@ -27,10 +27,15 @@ enum Level {
///
/// Client can choose to color code the panel depending on how good/bad the grade is.
enum Grade {
@JsonValue('a')
A,
@JsonValue('b')
B,
@JsonValue('c')
C,
@JsonValue('d')
D,
@JsonValue('e')
E,
UNKNOWN,
}
Expand Down
12 changes: 6 additions & 6 deletions lib/model/KnowledgePanel.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/model/KnowledgePanelElement.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

236 changes: 235 additions & 1 deletion lib/model/Product.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.