/// data : [{"id":50,"topic":"for-user-6","alert":"success","type":"all","title":"Ticket Updated","message":"Ticket #938358 Is replay","is_read":0,"date":"29-Aug-2023"},{"id":49,"topic":"for-user-6","alert":"success","type":"all","title":"Ticket Updated","message":"Ticket #938358 Is replay","is_read":0,"date":"29-Aug-2023"},{"id":48,"topic":"for-user-6","alert":"success","type":"all","title":"Ticket Updated","message":"Ticket #938358 Is replay","is_read":0,"date":"29-Aug-2023"},{"id":47,"topic":"for-user-6","alert":"success","type":"push","title":"Ticket Replay ","message":"Ticket #938358 Is replay","is_read":0,"date":"29-Aug-2023"},{"id":46,"topic":"for-user-6","alert":"success","type":"push","title":"Ticket Replay ","message":"Ticket #938358 Is replay","is_read":0,"date":"29-Aug-2023"},{"id":45,"topic":"for-user-6","alert":"success","type":"push","title":"Ticket Replay","message":"Ticket #938358 Is replay","is_read":0,"date":"29-Aug-2023"},{"id":44,"topic":"for-user-6","alert":"success","type":"push","title":"Ticket Replay","message":"Ticket #938358 Is replay","is_read":0,"date":"28-Aug-2023"},{"id":43,"topic":"for-user-6","alert":"success","type":"all","title":"Profile Update","message":"Your Profile is Updated","is_read":0,"date":"28-Aug-2023"},{"id":42,"topic":"for-user-6","alert":"success","type":"all","title":"Profile Update","message":"Your Profile is Updated","is_read":0,"date":"28-Aug-2023"},{"id":41,"topic":"for-user-6","alert":"success","type":"all","title":"Profile Update","message":"Your Profile is Updated","is_read":0,"date":"28-Aug-2023"},{"id":40,"topic":"for-user-6","alert":"success","type":"all","title":"Profile Update","message":"Your Profile is Updated","is_read":0,"date":"28-Aug-2023"},{"id":34,"topic":"for-user-6","alert":"success","type":"all","title":"Setting update","message":"Your default languages changed","is_read":0,"date":"21-Aug-2023"},{"id":33,"topic":"for-user-6","alert":"success","type":"all","title":"Setting update","message":"Your default languages changed","is_read":0,"date":"21-Aug-2023"}]

class Notify {
  Notify({
      List<Data>? data,}){
    _data = data;
}

  Notify.fromJson(dynamic json) {
    if (json['data'] != null) {
      _data = [];
      json['data'].forEach((v) {
        _data?.add(Data.fromJson(v));
      });
    }
  }
  List<Data>? _data;
Notify copyWith({  List<Data>? data,
}) => Notify(  data: data ?? _data,
);
  List<Data>? get data => _data;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_data != null) {
      map['data'] = _data?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// id : 50
/// topic : "for-user-6"
/// alert : "success"
/// type : "all"
/// title : "Ticket Updated"
/// message : "Ticket #938358 Is replay"
/// is_read : 0
/// date : "29-Aug-2023"

class Data {
  Data({
      num? id, 
      String? topic, 
      String? alert, 
      String? type, 
      String? title, 
      String? message, 
      String? isRead,
      String? date,}){
    _id = id;
    _topic = topic;
    _alert = alert;
    _type = type;
    _title = title;
    _message = message;
    _isRead = isRead;
    _date = date;
}

  Data.fromJson(dynamic json) {
    _id = json['id'];
    _topic = json['topic'];
    _alert = json['alert'];
    _type = json['type'];
    _title = json['title'];
    _message = json['message'];
    _isRead = json['is_read'].toString();
    _date = json['date'];
  }
  num? _id;
  String? _topic;
  String? _alert;
  String? _type;
  String? _title;
  String? _message;
  String? _isRead;
  String? _date;
Data copyWith({  num? id,
  String? topic,
  String? alert,
  String? type,
  String? title,
  String? message,
  String? isRead,
  String? date,
}) => Data(  id: id ?? _id,
  topic: topic ?? _topic,
  alert: alert ?? _alert,
  type: type ?? _type,
  title: title ?? _title,
  message: message ?? _message,
  isRead: isRead ?? _isRead,
  date: date ?? _date,
);
  num? get id => _id;
  String? get topic => _topic;
  String? get alert => _alert;
  String? get type => _type;
  String? get title => _title;
  String? get message => _message;
  String? get isRead => _isRead;
  String? get date => _date;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['topic'] = _topic;
    map['alert'] = _alert;
    map['type'] = _type;
    map['title'] = _title;
    map['message'] = _message;
    map['is_read'] = _isRead;
    map['date'] = _date;
    return map;
  }

}