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