lib/open_xchange_client/model/file_service_data.ex

# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.

defmodule OpenXchangeClient.Model.FileServiceData do
  @moduledoc """

  """

  @derive [Poison.Encoder]
  defstruct [
    :id,
    :displayName,
    :configuration
  ]

  @type t :: %__MODULE__{
          :id => String.t() | nil,
          :displayName => String.t() | nil,
          :configuration => [OpenXchangeClient.Model.FileServiceConfiguration.t()] | nil
        }
end

defimpl Poison.Decoder, for: OpenXchangeClient.Model.FileServiceData do
  import OpenXchangeClient.Deserializer

  def decode(value, options) do
    value
    |> deserialize(
      :configuration,
      :list,
      OpenXchangeClient.Model.FileServiceConfiguration,
      options
    )
  end
end