encode method

Object encode()

Implementation

Object encode() {
  return <Object?>[
    classIndex,
    className,
    score,
    rect.encode(),
  ];
}