Implementation
static V encode<V>(
RegistrationCountryOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.ae != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.ae!,
container.nestedSingleValueContainer('ae').encoder,
);
}
if (instance.at != null) {
RegistrationAt.encode(
instance.at!,
container.nestedSingleValueContainer('at').encoder,
);
}
if (instance.au != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.au!,
container.nestedSingleValueContainer('au').encoder,
);
}
if (instance.be != null) {
RegistrationAt.encode(
instance.be!,
container.nestedSingleValueContainer('be').encoder,
);
}
if (instance.bg != null) {
RegistrationAt.encode(
instance.bg!,
container.nestedSingleValueContainer('bg').encoder,
);
}
if (instance.ca != null) {
RegistrationCa.encode(
instance.ca!,
container.nestedSingleValueContainer('ca').encoder,
);
}
if (instance.ch != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.ch!,
container.nestedSingleValueContainer('ch').encoder,
);
}
if (instance.cl != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.cl!,
container.nestedSingleValueContainer('cl').encoder,
);
}
if (instance.co != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.co!,
container.nestedSingleValueContainer('co').encoder,
);
}
if (instance.cy != null) {
RegistrationAt.encode(
instance.cy!,
container.nestedSingleValueContainer('cy').encoder,
);
}
if (instance.cz != null) {
RegistrationAt.encode(
instance.cz!,
container.nestedSingleValueContainer('cz').encoder,
);
}
if (instance.de != null) {
RegistrationAt.encode(
instance.de!,
container.nestedSingleValueContainer('de').encoder,
);
}
if (instance.dk != null) {
RegistrationAt.encode(
instance.dk!,
container.nestedSingleValueContainer('dk').encoder,
);
}
if (instance.ee != null) {
RegistrationAt.encode(
instance.ee!,
container.nestedSingleValueContainer('ee').encoder,
);
}
if (instance.es != null) {
RegistrationAt.encode(
instance.es!,
container.nestedSingleValueContainer('es').encoder,
);
}
if (instance.fi != null) {
RegistrationAt.encode(
instance.fi!,
container.nestedSingleValueContainer('fi').encoder,
);
}
if (instance.fr != null) {
RegistrationAt.encode(
instance.fr!,
container.nestedSingleValueContainer('fr').encoder,
);
}
if (instance.gb != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.gb!,
container.nestedSingleValueContainer('gb').encoder,
);
}
if (instance.gr != null) {
RegistrationAt.encode(
instance.gr!,
container.nestedSingleValueContainer('gr').encoder,
);
}
if (instance.hr != null) {
RegistrationAt.encode(
instance.hr!,
container.nestedSingleValueContainer('hr').encoder,
);
}
if (instance.hu != null) {
RegistrationAt.encode(
instance.hu!,
container.nestedSingleValueContainer('hu').encoder,
);
}
if (instance.id != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.id!,
container.nestedSingleValueContainer('id').encoder,
);
}
if (instance.ie != null) {
RegistrationAt.encode(
instance.ie!,
container.nestedSingleValueContainer('ie').encoder,
);
}
if (instance.is_ != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.is_!,
container.nestedSingleValueContainer('is').encoder,
);
}
if (instance.it != null) {
RegistrationAt.encode(
instance.it!,
container.nestedSingleValueContainer('it').encoder,
);
}
if (instance.jp != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.jp!,
container.nestedSingleValueContainer('jp').encoder,
);
}
if (instance.kr != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.kr!,
container.nestedSingleValueContainer('kr').encoder,
);
}
if (instance.lt != null) {
RegistrationAt.encode(
instance.lt!,
container.nestedSingleValueContainer('lt').encoder,
);
}
if (instance.lu != null) {
RegistrationAt.encode(
instance.lu!,
container.nestedSingleValueContainer('lu').encoder,
);
}
if (instance.lv != null) {
RegistrationAt.encode(
instance.lv!,
container.nestedSingleValueContainer('lv').encoder,
);
}
if (instance.mt != null) {
RegistrationAt.encode(
instance.mt!,
container.nestedSingleValueContainer('mt').encoder,
);
}
if (instance.mx != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.mx!,
container.nestedSingleValueContainer('mx').encoder,
);
}
if (instance.my != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.my!,
container.nestedSingleValueContainer('my').encoder,
);
}
if (instance.nl != null) {
RegistrationAt.encode(
instance.nl!,
container.nestedSingleValueContainer('nl').encoder,
);
}
if (instance.no != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.no!,
container.nestedSingleValueContainer('no').encoder,
);
}
if (instance.nz != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.nz!,
container.nestedSingleValueContainer('nz').encoder,
);
}
if (instance.pl != null) {
RegistrationAt.encode(
instance.pl!,
container.nestedSingleValueContainer('pl').encoder,
);
}
if (instance.pt != null) {
RegistrationAt.encode(
instance.pt!,
container.nestedSingleValueContainer('pt').encoder,
);
}
if (instance.ro != null) {
RegistrationAt.encode(
instance.ro!,
container.nestedSingleValueContainer('ro').encoder,
);
}
if (instance.sa != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.sa!,
container.nestedSingleValueContainer('sa').encoder,
);
}
if (instance.se != null) {
RegistrationAt.encode(
instance.se!,
container.nestedSingleValueContainer('se').encoder,
);
}
if (instance.sg != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.sg!,
container.nestedSingleValueContainer('sg').encoder,
);
}
if (instance.si != null) {
RegistrationAt.encode(
instance.si!,
container.nestedSingleValueContainer('si').encoder,
);
}
if (instance.sk != null) {
RegistrationAt.encode(
instance.sk!,
container.nestedSingleValueContainer('sk').encoder,
);
}
if (instance.th != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.th!,
container.nestedSingleValueContainer('th').encoder,
);
}
if (instance.tr != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.tr!,
container.nestedSingleValueContainer('tr').encoder,
);
}
if (instance.us != null) {
RegistrationUs.encode(
instance.us!,
container.nestedSingleValueContainer('us').encoder,
);
}
if (instance.vn != null) {
TaxProductRegistrationsResourceCountryOptionsSimplified.encode(
instance.vn!,
container.nestedSingleValueContainer('vn').encoder,
);
}
if (instance.za != null) {
TaxProductRegistrationsResourceCountryOptionsDefault.encode(
instance.za!,
container.nestedSingleValueContainer('za').encoder,
);
}
return container.value;
}