// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';

var Json_decode = require("@glennsl/bs-json/src/Json_decode.bs.js");
var Maybe$OptolithClient = require("../../Data/Maybe.bs.js");
var JsonStrict$OptolithClient = require("../Utilities/JsonStrict.bs.js");

function t(json) {
  return {
          date: Json_decode.field("id", Json_decode.date, json),
          description: Json_decode.field("id", Json_decode.string, json)
        };
}

function list(json) {
  return Maybe$OptolithClient.fromMaybe(/* [] */0, JsonStrict$OptolithClient.maybe((function (param) {
                    return Json_decode.list(t, param);
                  }), json));
}

var Decode = {
  t: t,
  list: list
};

exports.Decode = Decode;
/* No side effect */
