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