Skip to content

Commit

Permalink
fix(Form): correctly parse lists of scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jan 31, 2022
1 parent b187a61 commit 5379081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/definitions/form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ class Form {
final dynamic jsonScopes = _getJsonValue(json, "scopes");
if (jsonScopes is String) {
scopes = [jsonScopes];
} else if (jsonScopes is List<String>) {
scopes = jsonScopes;
} else if (jsonScopes is List<dynamic>) {
scopes = jsonScopes.whereType<String>().toList();
}
}

Expand Down

0 comments on commit 5379081

Please sign in to comment.