Map<String, dynamic> toJson() { final Map<String, dynamic> data = Map<String, dynamic>(); data['id'] = this.id; data['points'] = this.points; data['value'] = this.value; return data; }