class_docstr: PredictionSingletonSemanticSegmentation
class_docstr_tok: ["PredictionSingletonSemanticSegmentation"]
docstr: Returns the JSON representation of the model
docstr_tok: ["Returns","the","JSON","representation","of","the","model"]
code: def to_json(self, by_alias: bool = False) -> str:
      """Returns the JSON representation of the model"""
      return json.dumps(self.to_dict(by_alias=by_alias))
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/prediction_singleton_semantic_segmentation.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Optional, Union
  from pydantic import Extra, BaseModel, Field, confloat, conint, conlist
  from lightly.openapi_generated.swagger_client.models.prediction_singleton_base import PredictionSingletonBase
label_desc: Use image node_id 2 for calling the PredictionSingletonSemanticSegmentation obj's underlying member method code with example usage: obj.to_json(by_alias) and returns: json