encode<V> static method

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

Implementation

static V encode<V>(
  SourceReceiver instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.refundAttributesMethod != null) {
    container.encodeString(
      'refund_attributes_method',
      instance.refundAttributesMethod!,
    );
  }
  return container.value;
}