PaymentIntentAffirm.fromJson constructor
PaymentIntentAffirm.fromJson(
- Object? json
Implementation
factory PaymentIntentAffirm.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentAffirm(
captureMethod: map['capture_method'] == null
? null
: SessionCaptureMethod.fromJson(map['capture_method']),
preferredLocale: map['preferred_locale'] == null
? null
: (map['preferred_locale'] as String),
);
}