class Notifications { int? status; List? data; Notifications({this.status, this.data}); Notifications.fromJson(Map json) { status = json['status']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data!.add(Data.fromJson(v)); }); } } } class Data { String? subject; String? message; String? createdAt; Data({ this.subject, this.message, this.createdAt, }); Data.fromJson(Map json) { subject = json['subject']; message = json['message']; createdAt = json['created_at']; } }