ServerNotificationModel constructor

const ServerNotificationModel({
  1. required DateTime createdAt,
  2. required String uuid,
  3. required String code,
  4. required String body,
  5. required String title,
  6. String? senderName,
  7. String? senderImage,
  8. required String notifiableType,
  9. required int notifiableId,
  10. required Map<String, dynamic> data,
  11. DateTime? readAt,
  12. String? authableType,
  13. int? authableId,
})

Implementation

const ServerNotificationModel({
  required this.createdAt,
  required this.uuid,
  required this.code,
  required this.body,
  required this.title,
  this.senderName,
  this.senderImage,
  required this.notifiableType,
  required this.notifiableId,
  required this.data,
  this.readAt,
  this.authableType,
  this.authableId,
}) : super(id: -1);