encode<V> static method

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

Implementation

static V encode<V>(
  TaxProductResourceTaxSettingsStatusDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.active != null) {
    TaxProductResourceTaxSettingsStatusDetailsResourceActive.encode(
      instance.active!,
      container.nestedSingleValueContainer('active').encoder,
    );
  }
  if (instance.pending != null) {
    TaxProductResourceTaxSettingsStatusDetailsResourcePending.encode(
      instance.pending!,
      container.nestedSingleValueContainer('pending').encoder,
    );
  }
  return container.value;
}