toMap method
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,
};