encode<V> static method

V encode<V>(
  1. RegistrationAt instance,
  2. Encoder<V> encoder
)

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;
}