mirrored_repositories/Flutter-Mobile-Application-Development/flutter_dotnet_web_api_integration/lib
class BookModel {
  int? id;
  String? title;
  String? description;

  BookModel({this.id, this.title, this.description});

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

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