PaymentMethodConfigurationDisplayPreference.fromJson constructor

PaymentMethodConfigurationDisplayPreference.fromJson(
  1. Object? json
)

Implementation

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