toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'notification',
if (extra != null) '@extra': extra,
'id': id,
'date': date,
'is_silent': is_silent,
'type': type
};
}