encode<V> static method
Implementation
static V encode<V>(
PaypalSellerProtection instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.disputeCategories != null) {
container.encodeList(
'dispute_categories',
(container) => instance.disputeCategories!.forEach((el) =>
PaymentMethodDetailsPaypalSellerProtectionDisputeCategoriesItem
.encode(
el,
container.nestedSingleValueContainer().encoder,
)),
);
}
PaymentMethodDetailsPaypalSellerProtectionStatus.encode(
instance.status,
container.nestedSingleValueContainer('status').encoder,
);
return container.value;
}