toMap method
转换为Map
Implementation
Map<String, dynamic> toMap() {
return {
'messageId': messageId,
'messageType': messageType,
'title': title,
'body': body,
'data': data,
'notificationId': notificationId,
'notificationTag': notificationTag,
'clickAction': clickAction,
'channelId': channelId,
'icon': icon,
'color': color,
'sound': sound,
'timestamp': timestamp,
};
}