serialize(d) {
    if (!d) {
      return null;
    }

    if (d instanceof Date) {
      return d.toISOString();
    }
    return d;
  }
serialize
@param  {Date} d Date obj
@return {String} Serialised date object