encode<V> static method
Implementation
static V encode<V>(
RegistrationAt instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.standard != null) {
TaxProductRegistrationsResourceCountryOptionsEuStandard.encode(
instance.standard!,
container.nestedSingleValueContainer('standard').encoder,
);
}
TaxProductRegistrationsResourceCountryOptionsEuropeType.encode(
instance.type,
container.nestedSingleValueContainer('type').encoder,
);
return container.value;
}