Skip to content

Commit

Permalink
fixup! feat!: rework TD @context handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed May 18, 2024
1 parent c7a4bd1 commit 31ce9b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/src/core/definitions/extensions/json_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -597,15 +597,15 @@ Iterable<ContextEntry> _parseContextEntries(dynamic json) sync* {
{
yield SingleContextEntry.fromString(jsonString);
}
case final List<dynamic> contextList:
case final List<dynamic> contextEntryList:
{
for (final blah in contextList.map(_parseContextEntries)) {
yield* blah;
for (final contextEntry in contextEntryList.map(_parseContextEntries)) {
yield* contextEntry;
}
}
case final Map<String, dynamic> contextList:
case final Map<String, dynamic> contextEntryList:
{
yield* contextList.entries.map((entry) {
yield* contextEntryList.entries.map((entry) {
final key = entry.key;
final value = entry.value;

Expand Down

0 comments on commit 31ce9b5

Please sign in to comment.