platform/archived_packages/rethink/test/common.dart

11 lines
179 B
Dart
Raw Normal View History

2017-02-22 03:13:08 +00:00
class Todo {
String title;
bool completed;
2021-06-26 13:13:43 +00:00
Todo({this.title, this.completed = false});
2017-02-22 03:13:08 +00:00
Map toJson() {
return {'title': title, 'completed': completed == true};
}
}