toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'subject': subject,
    'title': title,
    'alert': alert,
    'sound': sound,
    'media': media?.toJson(),
    'startDateUtc': startDateUtc?.toIso8601String(),
    'endDateUtc': endDateUtc?.toIso8601String(),
    'sendDateUtc': sendDateUtc?.toIso8601String(),
    'url': url,
    'custom': custom,
    'customKeys': customKeys,
    'deleted': deleted,
    'read': read,
    'subtitle': subtitle,
    'inboxMessage': inboxMessage,
    'inboxSubtitle': inboxSubtitle,
    'notificationMessage': notificationMessage?.toJson(),
    'messageType': messageType
  };
}