PaymentIntentNextActionCashappQrCode.fromJson constructor

PaymentIntentNextActionCashappQrCode.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentNextActionCashappQrCode.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentNextActionCashappQrCode(
    expiresAt: DateTime.fromMillisecondsSinceEpoch(
        (map['expires_at'] as int).toInt()),
    imageUrlPng: (map['image_url_png'] as String),
    imageUrlSvg: (map['image_url_svg'] as String),
  );
}