PaymentMethodConfigResourcePaymentMethodProperties.fromJson constructor

PaymentMethodConfigResourcePaymentMethodProperties.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodConfigResourcePaymentMethodProperties.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodConfigResourcePaymentMethodProperties(
    available: (map['available'] as bool),
    displayPreference: PaymentMethodConfigResourceDisplayPreference.fromJson(
        map['display_preference']),
  );
}