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