PaymentMethodPaypal.fromJson constructor

PaymentMethodPaypal.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodPaypal.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodPaypal(
    payerEmail:
        map['payer_email'] == null ? null : (map['payer_email'] as String),
    payerId: map['payer_id'] == null ? null : (map['payer_id'] as String),
  );
}