toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() => <String, Object?>{
  if (title != null) 'title': title,
  if (body != null) 'body': body,
  if (iconResourceName != null) 'iconResourceName': iconResourceName,
  if (stopAction != null) 'stopAction': stopAction!.toMap(),
  if (visibleChannel) 'visibleChannel': true,
};