encode<V> static method
Implementation
static V encode<V>(
QuotesResourceAutomaticTax instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeBool(
'enabled',
instance.enabled,
);
if (instance.liability != null) {
ConnectAccountReference.encode(
instance.liability!,
container.nestedSingleValueContainer('liability').encoder,
);
}
if (instance.status != null) {
AutomaticTaxStatus.encode(
instance.status!,
container.nestedSingleValueContainer('status').encoder,
);
}
return container.value;
}