PaymentIntentNextActionBoleto.fromJson constructor
PaymentIntentNextActionBoleto.fromJson(
- Object? json
Implementation
factory PaymentIntentNextActionBoleto.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentNextActionBoleto(
expiresAt: map['expires_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['expires_at'] 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),
pdf: map['pdf'] == null ? null : (map['pdf'] as String),
);
}