encode<V> static method

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

Implementation

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