PaymentIntentProcessingCustomerNotification.fromJson constructor
PaymentIntentProcessingCustomerNotification.fromJson(
- Object? json
Implementation
factory PaymentIntentProcessingCustomerNotification.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentProcessingCustomerNotification(
approvalRequested: map['approval_requested'] == null
? null
: (map['approval_requested'] as bool),
completesAt: map['completes_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['completes_at'] as int).toInt()),
);
}