IssuingCardApplePay.fromJson constructor

IssuingCardApplePay.fromJson(
  1. Object? json
)

Implementation

factory IssuingCardApplePay.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingCardApplePay(
    eligible: (map['eligible'] as bool),
    ineligibleReason: map['ineligible_reason'] == null
        ? null
        : IssuingCardApplePayIneligibleReason.fromJson(
            map['ineligible_reason']),
  );
}