toMap method

Map<String, String> toMap()

Implementation

Map<String, String> toMap() => {
  'title': title,
  'body': body,
  if (sound != null) 'sound': sound!,
};