encode<V> static method
V
encode<V>(
- TaxProductRegistrationsResourceCountryOptionsUnitedStates instance,
- Encoder<
V> encoder
Implementation
static V encode<V>(
TaxProductRegistrationsResourceCountryOptionsUnitedStates instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.localAmusementTax != null) {
TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax.encode(
instance.localAmusementTax!,
container.nestedSingleValueContainer('local_amusement_tax').encoder,
);
}
if (instance.localLeaseTax != null) {
TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax.encode(
instance.localLeaseTax!,
container.nestedSingleValueContainer('local_lease_tax').encoder,
);
}
container.encodeString(
'state',
instance.state,
);
container.encodeString(
'type',
instance.type,
);
return container.value;
}