encode<V> static method

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

Implementation

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