encode<V> static method

V encode<V>(
  1. PaymentMethodDetailsPaypalSellerProtection instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  PaymentMethodDetailsPaypalSellerProtection instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.disputeCategories != null) {
    container.encodeList(
      'dispute_categories',
      (container) => instance.disputeCategories!
          .forEach((el) => container.encodeString(el)),
    );
  }
  container.encodeString(
    'status',
    instance.status,
  );
  return container.value;
}