encode<V> static method

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

Implementation

static V encode<V>(
  RefundDestinationDetailsGeneric instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.reference != null) {
    container.encodeString(
      'reference',
      instance.reference!,
    );
  }
  if (instance.referenceStatus != null) {
    container.encodeString(
      'reference_status',
      instance.referenceStatus!,
    );
  }
  return container.value;
}