Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix: uncomment requiredClaims.toJson() (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwlee authored May 29, 2024
1 parent d714e18 commit 71fe418
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/protocol/models/resource_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class OfferingData extends ResourceData {
payoutUnitsPerPayinUnit: json['payoutUnitsPerPayinUnit'],
payin: PayinDetails.fromJson(json['payin']),
payout: PayoutDetails.fromJson(json['payout']),
requiredClaims: json['requiredClaims'] != null ? PresentationDefinition.fromJson(json['requiredClaims']) : null,
requiredClaims: json['requiredClaims'] != null
? PresentationDefinition.fromJson(json['requiredClaims'])
: null,
);
}

Expand All @@ -41,7 +43,7 @@ class OfferingData extends ResourceData {
'payoutUnitsPerPayinUnit': payoutUnitsPerPayinUnit,
'payin': payin.toJson(),
'payout': payout.toJson(),
// 'requiredClaims': requiredClaims?.toJson(),
'requiredClaims': requiredClaims?.toJson(),
};
}
}
Expand Down

0 comments on commit 71fe418

Please sign in to comment.