apple_pay_order_response.dart
978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class ApplePayOrderResponse {
const ApplePayOrderResponse({this.orderInfo});
final ApplePayOrderInfo? orderInfo;
factory ApplePayOrderResponse.fromJson(Map<String, dynamic> json) {
return ApplePayOrderResponse(
orderInfo: json['order_info'] == null
? null
: ApplePayOrderInfo.fromJson(
json['order_info'] as Map<String, dynamic>,
),
);
}
Map<String, dynamic> toJson() {
final val = <String, dynamic>{};
if (orderInfo != null) val['order_info'] = orderInfo!.toJson();
return val;
}
}
class ApplePayOrderInfo {
const ApplePayOrderInfo({this.orderUuid});
final String? orderUuid;
factory ApplePayOrderInfo.fromJson(Map<String, dynamic> json) {
return ApplePayOrderInfo(
orderUuid: json['order_uuid'] as String?,
);
}
Map<String, dynamic> toJson() {
final val = <String, dynamic>{};
if (orderUuid != null) val['order_uuid'] = orderUuid;
return val;
}
}