mirrored_repositories/flutter_learning/18_todo_mobx/lib

class Todo {
  int id;
  String title;
  bool done;

  Todo({this.id, this.title, this.done});

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

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