class ContentInfoModel { int? totalItemsCount; int? statusCode; String? message; List? data; ContentInfoModel({this.totalItemsCount, this.statusCode, this.message, this.data}); ContentInfoModel.fromJson(Map json) { totalItemsCount = json['totalItemsCount']; statusCode = json['statusCode']; message = json['message']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data?.add(new ContentInfoDataModel.fromJson(v)); }); } } Map toJson() { Map data = new Map(); data['totalItemsCount'] = this.totalItemsCount; data['statusCode'] = this.statusCode; data['message'] = this.message; if (this.data != null) { data['data'] = this.data?.map((v) => v.toJson()).toList(); } return data; } } class ContentInfoDataModel { int? contentInfoId; int? contentTypeId; String? content; String? contentTypeNameEn; String? contentTypeNameAr; String? fileName; String? exposeFilePath; ContentInfoDataModel({this.contentInfoId, this.contentTypeId, this.content, this.contentTypeNameEn, this.contentTypeNameAr, this.fileName, this.exposeFilePath}); ContentInfoDataModel.fromJson(Map json) { contentInfoId = json['contentInfoId']; contentTypeId = json['contentTypeId']; content = json['content']; contentTypeNameEn = json['contentTypeNameEn']; contentTypeNameAr = json['contentTypeNameAr']; fileName = json['fileName']; exposeFilePath = json['exposeFilePath']; } Map toJson() { Map data = new Map(); data['contentInfoId'] = this.contentInfoId; data['contentTypeId'] = this.contentTypeId; data['content'] = this.content; data['contentTypeNameEn'] = this.contentTypeNameEn; data['contentTypeNameAr'] = this.contentTypeNameAr; data['fileName'] = this.fileName; data['exposeFilePath'] = this.exposeFilePath; return data; } }