PaymentIntentLink.fromJson constructor
PaymentIntentLink.fromJson(
- Object? json
Implementation
factory PaymentIntentLink.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentLink(
captureMethod: map['capture_method'] == null
? null
: SessionCaptureMethod.fromJson(map['capture_method']),
persistentToken: map['persistent_token'] == null
? null
: (map['persistent_token'] as String),
setupFutureUsage: map['setup_future_usage'] == null
? null
: SessionPaypalSetupFutureUsage.fromJson(map['setup_future_usage']),
);
}