Current section
Files
Jump to
Current section
Files
lib/google_fit/application.ex
defmodule GoogleFit.Application do
@moduledoc """
This struct represents an application that has sent data to a
particular data source.
"""
@keys ~w[package_name version details_url name]a
defstruct @keys
@doc false
def decode(nil), do: nil
def decode(map = %{}) do
%__MODULE__{} |> Map.merge(GoogleFit.Util.normalize_keys(map, @keys))
end
end