class LocalNotificationModel { String? action; String? status; String? timestmp; String? chat; String? id; String? reciver; String? sender; LocalNotificationModel({ this.action, this.chat, this.id, this.reciver, this.sender, this.status, this.timestmp, }); Map toJson() => { "action": action, "chat": chat, "id": id, "reciver": reciver, "sender": sender, "status": status, "timestmp": timestmp, }; factory LocalNotificationModel.fromJson(Map json){ return LocalNotificationModel( action: json['action'], chat: json['chat'], id: json['id'], status: json['status'], timestmp: json['timestmp'].toString(), reciver: json['reciver'], sender: json['sender'], ); } }