Navigation Menu

Skip to content

Commit

Permalink
fix: Parsing of Grade Json field (#311)
Browse files Browse the repository at this point in the history
Co-authored-by: Jasmeet Singh <jasmeetsingh@google.com>
  • Loading branch information
jasmeet0817 and Jasmeet Singh committed Dec 11, 2021
1 parent 00cb3e9 commit 2da4d27
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 6 deletions.
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
10 changes: 5 additions & 5 deletions lib/model/KnowledgePanel.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.

0 comments on commit 2da4d27

Please sign in to comment.