CheckoutSessionPaymentMethodConfigurationDetails.fromJson constructor

CheckoutSessionPaymentMethodConfigurationDetails.fromJson(
  1. Object? json
)

Implementation

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