encode<V> static method

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

Implementation

static V encode<V>(
  DisputePaymentMethodDetailsCard instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'brand',
    instance.brand,
  );
  if (instance.networkReasonCode != null) {
    container.encodeString(
      'network_reason_code',
      instance.networkReasonCode!,
    );
  }
  return container.value;
}