MBMessage constructor

MBMessage({
  1. required int id,
  2. required String title,
  3. required String messageDescription,
  4. required MBMessageType messageType,
  5. MBInAppMessage? inAppMessage,
  6. MBPushMessage? pushMessage,
  7. required DateTime createdAt,
  8. DateTime? startDate,
  9. DateTime? endDate,
  10. required bool automationIsOn,
  11. required int sendAfterDays,
  12. required int repeatTimes,
  13. dynamic triggers,
})

Initializes a message with the parameters passed.

Implementation

MBMessage({
  required this.id,
  required this.title,
  required this.messageDescription,
  required this.messageType,
  this.inAppMessage,
  this.pushMessage,
  required this.createdAt,
  this.startDate,
  this.endDate,
  required this.automationIsOn,
  required this.sendAfterDays,
  required this.repeatTimes,
  this.triggers,
});