PaymentMethodConfigResourceDisplayPreference.fromJson constructor

PaymentMethodConfigResourceDisplayPreference.fromJson(
  1. Object? json
)

Implementation

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