text: import { pickBy } from "lodash";
  
  // @TODO (zzarcon): Implement 'included' support after relationships
  export const JSONApiSerializer = (record = {}, type = null) => {
    const id = record.id;
    const included = [];
    const relationships = {};
    const serializedRecord = pickBy(record, (value, key) => key !== "id");
  
    return {
      data: {
        id,
        attributes: serializedRecord,
        relationships,
        type
      },
      included
    };
  };
  