encode<V> static method
Implementation
static V encode<V>(
SessionLiability instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.account != null) {
container.encodeString(
'account',
instance.account!,
);
}
AutomaticTaxLiabilityType.encode(
instance.type,
container.nestedSingleValueContainer('type').encoder,
);
return container.value;
}