mirrored_repositories/FlutterBasicExamples/http_demo/lib
class Todo {
  int? id;
  int? userId;
  bool? completed;
  String? title;

  Todo(int id, int userId, bool completed, String title) {
    this.id = id;
    this.userId = userId;
    this.completed = completed;
    this.title = title;
  }

  Todo.fromJson(Map json) {
    id = json["id"];
    userId = json["userId"];
    completed = json["completed"];
    title = json["title"];
  }
  Map toJson() {
    return {
      "id": id,
      "userId": userId,
      "completed": completed,
      "title": title,
    };
  }
}
