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