toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['notification_id'] = _notificationId;
  map['id_redirect'] = _idRedirect;
  map['content_type'] = _contentType;
  map['title'] = _title;
  map['message'] = _message;
  map['image'] = _image;
  map['device_type'] = _deviceType;
  if (_createdAtDateTime != null) {
    map['created_at_date_time'] = _createdAtDateTime?.toJson();
  }
  return map;
}