Skip to content

Commit

Permalink
fix(json_parser.dart): fix bug in link deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 2, 2024
1 parent 5c496d1 commit b16415d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/core/definitions/extensions/json_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,10 @@ extension ParseField on Map<String, dynamic> {
PrefixMapping prefixMapping,
Set<String>? parsedFields,
) {
final fieldValue =
parseField<List<Map<String, dynamic>>>("links", parsedFields);
final fieldValue = parseArrayField<Map<String, dynamic>>(
"links",
parsedFields: parsedFields,
);

return fieldValue?.map((e) => Link.fromJson(e, prefixMapping)).toList();
}
Expand Down

0 comments on commit b16415d

Please sign in to comment.