code: public static DeserializeResult<DoubleSummary> fromMemory(final Memory mem) {
      return new DeserializeResult<>(new DoubleSummary(mem.getDouble(VALUE_DOUBLE),
          Mode.values()[mem.getByte(MODE_BYTE)]), SERIALIZED_SIZE_BYTES);
    }
docs: Creates an instance of the DoubleSummary given a serialized representation
  @param mem Memory object with serialized DoubleSummary
  @return DeserializedResult object, which contains a DoubleSummary object and number of bytes
  read from the Memory