encode<V> static method
Implementation
static V encode<V>(
QuoteTransferData instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.amount != null) {
container.encodeInt(
'amount',
instance.amount!,
);
}
if (instance.amountPercent != null) {
container.encodeDouble(
'amount_percent',
instance.amountPercent!,
);
}
AccountOrId.encode(
instance.destination,
container.nestedSingleValueContainer('destination').encoder,
);
return container.value;
}