encode<V> static method
Implementation
static V encode<V>(
AuthorizationAmountDetails instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.atmFee != null) {
container.encodeInt(
'atm_fee',
instance.atmFee!,
);
}
if (instance.cashbackAmount != null) {
container.encodeInt(
'cashback_amount',
instance.cashbackAmount!,
);
}
return container.value;
}