# NOTE: This file is auto generated by OpenAPI Generator # https://openapi-generator.tech # Do not edit this file manually. defmodule DocuSign.Model.SmartSectionDisplaySettings do @moduledoc """ These properties define how a Smart Section displays. A Smart Section is a type of display section. """ alias DocuSign.Deserializer alias DocuSign.Model.SmartSectionCollapsibleDisplaySettings defstruct [ :cellStyle, :collapsibleSettings, :display, :displayLabel, :displayOrder, :displayPageNumber, :hideLabelWhenOpened, :inlineOuterStyle, :labelWhenOpened, :preLabel, :scrollToTopWhenOpened, :tableStyle ] @doc false defimpl Jason.Encoder, for: __MODULE__ do def encode(struct, opts) do struct |> Map.from_struct() |> Enum.reject(fn {_k, v} -> is_nil(v) end) |> Map.new() |> Jason.Encode.map(opts) end end @type t :: %__MODULE__{ :cellStyle => String.t() | nil, :collapsibleSettings => SmartSectionCollapsibleDisplaySettings.t() | nil, :display => String.t() | nil, :displayLabel => String.t() | nil, :displayOrder => integer() | nil, :displayPageNumber => integer() | nil, :hideLabelWhenOpened => boolean() | nil, :inlineOuterStyle => String.t() | nil, :labelWhenOpened => String.t() | nil, :preLabel => String.t() | nil, :scrollToTopWhenOpened => boolean() | nil, :tableStyle => String.t() | nil } def decode(value) do value |> Deserializer.deserialize( :collapsibleSettings, :struct, SmartSectionCollapsibleDisplaySettings ) |> then(&struct(__MODULE__, &1)) end end