encode<V> static method
Implementation
static V encode<V>(
OutboundPaymentReturnedDetails instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.code != null) {
TreasuryOutboundPaymentReturnedDetailsCode.encode(
instance.code!,
container.nestedSingleValueContainer('code').encoder,
);
}
return container.value;
}