mirrored_repositories/flutter_course_bano_qabil/lesson_10/lib
class PostAPIModel {
  int? id;
  String? title;

  PostAPIModel({this.id, this.title});

  PostAPIModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    return data;
  }
}
