class_docstr: Eva worker get model from search strategy
  The serialize/deserialize is for good scalability. The project can be decouple into multiple service
class_docstr_tok: ["Eva","worker","get","model","from","search","strategy","The","serialize\/deserialize","is","for","good","scalability",".","The","project","can","be","decouple","into","multiple","service"]
code: def serialize_model(self) -> str:
      data = {
          "is_last": self.is_last,
          "model_id": self.model_id,
          "model_encoding": self.model_encoding,
          "spi_seconds": self.spi_seconds,
          "spi_mini_batch": self.spi_mini_batch,
      }
  
      return json.dumps(data)
  
file_path: singa/examples/model_selection/TRAILS-Database-Native-Model-Selection/internal/ml/model_selection/src/common/structure.py
imports: import json
label_desc: Use image node_id 2 for calling the ModelAcquireData obj's underlying member method code with example usage: obj.serialize_model() and returns: json