PPlusFireStore.Decoder (pplus_firestore v0.1.5)

View Source

Documentation for PPlusFireStore.Decoder.

This module is responsible for decoding the response from Google Firestore API.

Example

iex> PPlusFireStore.Decoder.decode(%GoogleApi.Firestore.V1.Model.Document{
...>   name: "projects/my_project/databases/(default)/documents/books/esgXQM7pqNCwQwYRJeBJ",
...>   fields: %{
...>     "author" => %GoogleApi.Firestore.V1.Model.Value{stringValue: "John Doe"}
...>   },
...>   createTime: ~U[2025-01-10 17:14:04.738331Z],
...>   updateTime: ~U[2025-01-10 17:14:04.738331Z]
...> })
%PPlusFireStore.Model.Document{
  path: "projects/my_project/databases/(default)/documents/books/esgXQM7pqNCwQwYRJeBJ",
  data: %{"author" => "John Doe"},
  created_at: ~U[2025-01-10 17:14:04.738331Z],
  updated_at: ~U[2025-01-10 17:14:04.738331Z]
}

Summary

Functions