readStateStrict = (state, fields) => {
  let hasErrors = false;
  fields.forEach((f) => {
    const current = state[f.name];
    //console.log(f.name, current, typeof current);

    if (typeof current !== "undefined") {
      if (f.type.read) {
        const readval = f.type.read(current);
        if (typeof readval === "undefined") {
          if (current === "" && !f.required) delete state[f.name];
          else hasErrors = true;
        }
        if (f.type && f.type.validate) {
          const vres = f.type.validate(f.attributes || {})(readval);
          if (vres.error) hasErrors = true;
        }
        state[f.name] = readval;
      } else if (f.type === "Key")
        state[f.name] =
          current === "null" || current === "" || current === null
            ? null
            : +current;
      else if (f.type === "File")
        state[f.name] =
          current === "null" || current === "" || current === null
            ? null
            : current;
    } else if (f.required && !f.primary_key) hasErrors = true;
  });
  return hasErrors ? false : state;
}
Read State Strict
@deprecated use Table.read_state_strict
@param {object} state
@param {object[]} fields
@returns {boolean|*}