toJson method
Returns the data fields of NotificationIconData in JSON format.
Implementation
Map<String, String> toJson() {
return {
'resType': resType.toString().split('.').last,
'resPrefix': resPrefix.toString().split('.').last,
'name': name,
};
}