ConnectEmbeddedPaymentsFeatures.fromJson constructor

ConnectEmbeddedPaymentsFeatures.fromJson(
  1. Object? json
)

Implementation

factory ConnectEmbeddedPaymentsFeatures.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ConnectEmbeddedPaymentsFeatures(
    capturePayments: (map['capture_payments'] as bool),
    destinationOnBehalfOfChargeManagement:
        map['destination_on_behalf_of_charge_management'] == null
            ? null
            : (map['destination_on_behalf_of_charge_management'] as bool),
    disputeManagement: (map['dispute_management'] as bool),
    refundManagement: (map['refund_management'] as bool),
  );
}