PaymentMethodOptionsKlarna.fromJson constructor

PaymentMethodOptionsKlarna.fromJson(
  1. Object? json
)

Implementation

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