lib/nomad_client/model/task_lifecycle.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 NomadClient.Model.TaskLifecycle do
  @moduledoc """

  """

  @derive [Poison.Encoder]
  defstruct [
    :Hook,
    :Sidecar
  ]

  @type t :: %__MODULE__{
          :Hook => String.t() | nil,
          :Sidecar => boolean() | nil
        }
end

defimpl Poison.Decoder, for: NomadClient.Model.TaskLifecycle do
  def decode(value, _options) do
    value
  end
end