PaymentMethodDetailsPaypalSellerProtection.fromJson constructor
PaymentMethodDetailsPaypalSellerProtection.fromJson(
- Object? json
Implementation
factory PaymentMethodDetailsPaypalSellerProtection.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodDetailsPaypalSellerProtection(
disputeCategories: map['dispute_categories'] == null
? null
: (map['dispute_categories'] as List<Object?>)
.map((el) =>
PaymentMethodDetailsPaypalSellerProtectionDisputeCategoriesItem
.fromJson(el))
.toList(),
status: PaymentMethodDetailsPaypalSellerProtectionStatus.fromJson(
map['status']),
);
}