encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodDetailsCashapp instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.buyerId != null) {
    container.encodeString(
      'buyer_id',
      instance.buyerId!,
    );
  }
  if (instance.cashtag != null) {
    container.encodeString(
      'cashtag',
      instance.cashtag!,
    );
  }
  return container.value;
}