toMap method

Map<String, dynamic> toMap()

Return the internal field of the class in map format.

Implementation

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