PaymentIntentCustomerAcceptance.fromJson constructor
PaymentIntentCustomerAcceptance.fromJson(
- Object? json
Implementation
factory PaymentIntentCustomerAcceptance.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentCustomerAcceptance(
acceptedAt: map['accepted_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['accepted_at'] as int).toInt()),
offline: map['offline'] == null ? null : (map['offline'] as Object),
online: map['online'] == null
? null
: PaymentIntentOnline.fromJson(map['online']),
type: CustomerAcceptanceType.fromJson(map['type']),
);
}