class PreviousReadOfUserModel { String? status; int? statusCode; String? message; List? data; PreviousReadOfUserModel( {this.status, this.statusCode, this.message, this.data}); PreviousReadOfUserModel.fromJson(Map json) { status = json['status']; statusCode = json['status_code']; message = json['message']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data!.add(Data.fromJson(v)); }); } } Map toJson() { final Map data = {}; data['status'] = status; data['status_code'] = statusCode; data['message'] = message; if (this.data != null) { data['data'] = this.data!.map((v) => v.toJson()).toList(); } return data; } } class Data { int? id; int? contentByteReadXid; int? iamPrincipalXid; String? readAt; ContentByteData? contentByteData; Data( {this.id, this.contentByteReadXid, this.iamPrincipalXid, this.readAt, this.contentByteData}); Data.fromJson(Map json) { id = json['id']; contentByteReadXid = json['content_byte_read_xid']; iamPrincipalXid = json['iam_principal_xid']; readAt = json['read_at']; contentByteData = json['content_byte_data'] != null ? ContentByteData.fromJson(json['content_byte_data']) : null; } Map toJson() { final Map data = {}; data['id'] = id; data['content_byte_read_xid'] = contentByteReadXid; data['iam_principal_xid'] = iamPrincipalXid; data['read_at'] = readAt; if (contentByteData != null) { data['content_byte_data'] = contentByteData!.toJson(); } return data; } } class ContentByteData { int? id; String? title; String? file; int? categoryId; String? image; String? isActive; String? description; String? createdAt; ContentByteData( {this.id, this.title, this.file, this.categoryId, this.description, this.image, this.isActive, this.createdAt}); ContentByteData.fromJson(Map json) { id = json['id']; title = json['title']; description = json["description"]; file = json['file']; categoryId = json['category_id']; image = json['image']; isActive = json['is_active']; createdAt = json['created_at']; } Map toJson() { final Map data = {}; data['id'] = id; data['title'] = title; data['file'] = file; data['category_id'] = categoryId; data['image'] = image; data['is_active'] = isActive; data['created_at'] = createdAt; data['description'] = description; return data; } }