Map<String, dynamic> toJson() { return <String, dynamic>{ 'pointX': pointX, 'pointY': pointY, 'type': type, 'score': score, }; }