lib/spatio/model/comment_response.ex

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

defmodule Spatio.Model.CommentResponse do
  @moduledoc """
  Single-comment response (`GET …/comments/:commentId`).
  """

  @derive JSON.Encoder
  defstruct [
    :comment
  ]

  @type t :: %__MODULE__{
    :comment => Spatio.Model.Comment.t
  }

  alias Spatio.Deserializer

  def decode(value) do
    value
     |> Deserializer.deserialize(:comment, :struct, Spatio.Model.Comment)
  end
end