This repository was archived by the owner on Dec 12, 2024. It is now read-only.
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import 'package:typeid/typeid.dart';
14
14
import 'package:web5/web5.dart' ;
15
15
16
16
class TbdexHttpClient {
17
+ TbdexHttpClient ._();
18
+
17
19
static const _jsonHeader = 'application/json' ;
18
20
static const _expirationDuration = Duration (minutes: 5 );
19
21
Original file line number Diff line number Diff line change @@ -145,7 +145,9 @@ class PayinMethod {
145
145
name: json['name' ],
146
146
description: json['description' ],
147
147
group: json['group' ],
148
- requiredPaymentDetails: JsonSchema .create (json['requiredPaymentDetails' ]),
148
+ requiredPaymentDetails: json['requiredPaymentDetails' ] != null
149
+ ? JsonSchema .create (json['requiredPaymentDetails' ])
150
+ : null ,
149
151
fee: json['fee' ],
150
152
min: json['min' ],
151
153
max: json['max' ],
@@ -199,7 +201,9 @@ class PayoutMethod {
199
201
name: json['name' ],
200
202
description: json['description' ],
201
203
group: json['group' ],
202
- requiredPaymentDetails: JsonSchema .create (json['requiredPaymentDetails' ]),
204
+ requiredPaymentDetails: json['requiredPaymentDetails' ] != null
205
+ ? JsonSchema .create (json['requiredPaymentDetails' ])
206
+ : null ,
203
207
fee: json['fee' ],
204
208
min: json['min' ],
205
209
max: json['max' ],
You can’t perform that action at this time.
0 commit comments