SetupIntentPaypal.fromJson constructor

SetupIntentPaypal.fromJson(
  1. Object? json
)

Implementation

factory SetupIntentPaypal.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SetupIntentPaypal(
      billingAgreementId: map['billing_agreement_id'] == null
          ? null
          : (map['billing_agreement_id'] as String));
}