Map<String, dynamic> toJson() { return <String, dynamic>{ if (notification != null) r'notification': notification, }; }