# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Thinkific.Model.UpdateUserRequest do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"first_name", :"last_name", :"email", :"password", :"roles", :"avatar_url", :"bio", :"company", :"headline", :"external_source", :"affiliate_code", :"affiliate_commission", :"affiliate_commission_type", :"affiliate_payout_email", :"custom_profile_fields" ] @type t :: %__MODULE__{ :"first_name" => String.t, :"last_name" => String.t, :"email" => String.t, :"password" => String.t, :"roles" => [Role], :"avatar_url" => String.t, :"bio" => String.t, :"company" => String.t, :"headline" => String.t, :"external_source" => String.t, :"affiliate_code" => String.t, :"affiliate_commission" => float(), :"affiliate_commission_type" => String.t, :"affiliate_payout_email" => String.t, :"custom_profile_fields" => [CustomProfileField] } end defimpl Poison.Decoder, for: Thinkific.Model.UpdateUserRequest do import Thinkific.Deserializer def decode(value, options) do value |> deserialize(:"roles", :list, Thinkific.Model.Role, options) |> deserialize(:"custom_profile_fields", :list, Thinkific.Model.CustomProfileField, options) end end