toMap method

Map<String, dynamic> toMap()

Convert object to Map.

Implementation

Map<String, dynamic> toMap() {
  return {'activity': activity, 'confidence': confidence};
}