encode<V> static method
Implementation
static V encode<V>(
RegistrationCa instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.provinceStandard != null) {
TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard.encode(
instance.provinceStandard!,
container.nestedSingleValueContainer('province_standard').encoder,
);
}
TaxProductRegistrationsResourceCountryOptionsCanadaType.encode(
instance.type,
container.nestedSingleValueContainer('type').encoder,
);
return container.value;
}