toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'kind': kind.name,
  'tone': tone.name,
  if (count != null) 'count': count,
  if (pulsing) 'pulsing': true,
};