encode<V> static method

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

Implementation

static V encode<V>(
  PaymentFlowsAmountDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.tip != null) {
    PaymentFlowsAmountDetailsResourceTip.encode(
      instance.tip!,
      container.nestedSingleValueContainer('tip').encoder,
    );
  }
  return container.value;
}