toJson method

dynamic toJson ()

Implementation

dynamic toJson() {
  return {
    "class": this.className,
    "score": this.score,
    "type_hierarchy": this.typeHierarchy
  };
}