1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-22 13:57:29 +01:00
Jisho-Study-Tool/lib/models/history/word_query.dart

17 lines
358 B
Dart
Raw Permalink Normal View History

2021-08-03 22:02:42 +02:00
class WordQuery {
2021-12-04 05:13:13 +01:00
final String query;
2021-08-03 22:02:42 +02:00
// TODO: Link query with results that the user clicks onto.
2021-12-04 05:13:13 +01:00
// final List<WordResult> chosenResults;
2021-08-03 22:02:42 +02:00
WordQuery({
required this.query,
});
2021-12-04 05:13:13 +01:00
Map<String, Object?> toJson() => {'query': query};
factory WordQuery.fromJson(Map<String, dynamic> json) =>
WordQuery(query: json['query'] as String);
2021-12-01 23:09:53 +01:00
}