toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'classIndex': classIndex,
    'className': className,
    'score': score,
    'rect': rect.toMap(),
  };
}