import '../../utils/Extensions/lib/adaptive_type.dart'; class ArticleModel { int? id; String? image; String? title; String? description; String? date; ArticleModel({this.id, this.image, this.title, this.description, this.date}); ArticleModel.fromJson(Map json) { id = Adapter.forceInt(json['id']); image = json['image']; title = json['title']; description = json['description']; date = json['created_at']; } Map toJson() { final Map data = {}; data['id'] = id; data['image'] = image; data['title'] = title; data['description'] = description; data['created_at'] = date; return data; } }