encode<V> static method

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

Implementation

static V encode<V>(
  SettingsDefaults instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.taxBehavior != null) {
    container.encodeString(
      'tax_behavior',
      instance.taxBehavior!,
    );
  }
  if (instance.taxCode != null) {
    container.encodeString(
      'tax_code',
      instance.taxCode!,
    );
  }
  return container.value;
}