encode<V> static method
Implementation
static V encode<V>(
TaxProductResourceTaxSettingsStatusDetails instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.active != null) {
TaxProductResourceTaxSettingsStatusDetailsResourceActive.encode(
instance.active!,
container.nestedSingleValueContainer('active').encoder,
);
}
if (instance.pending != null) {
TaxProductResourceTaxSettingsStatusDetailsResourcePending.encode(
instance.pending!,
container.nestedSingleValueContainer('pending').encoder,
);
}
return container.value;
}