toMap method

Map<String, Object?> toMap()

Serializes to a map.

Implementation

Map<String, Object?> toMap() {
  return <String, Object?>{'type': type.name, 'confidence': confidence.name};
}