PaymentIntentNextActionDisplayOxxoDetails.fromJson constructor
PaymentIntentNextActionDisplayOxxoDetails.fromJson(
- Object? json
Implementation
factory PaymentIntentNextActionDisplayOxxoDetails.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentNextActionDisplayOxxoDetails(
expiresAfter: map['expires_after'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['expires_after'] as int).toInt()),
hostedVoucherUrl: map['hosted_voucher_url'] == null
? null
: (map['hosted_voucher_url'] as String),
number: map['number'] == null ? null : (map['number'] as String),
);
}