encode<V> static method

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

Implementation

static V encode<V>(
  AccountDashboardSettings instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.displayName != null) {
    container.encodeString(
      'display_name',
      instance.displayName!,
    );
  }
  if (instance.timezone != null) {
    container.encodeString(
      'timezone',
      instance.timezone!,
    );
  }
  return container.value;
}